Mailinglist Archive: yast-commit (1535 mails)
| < Previous | Next > |
[yast-commit] <rest-service> master : reading xml for missing arguments
- From: Stefan Schubert <schubi@xxxxxxx>
- Date: Thu, 22 Oct 2009 13:42:10 +0200
- Message-id: <E1N0w3o-000650-8Q@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit a9d78c7630619afc6869af7f530ace44d6e0f013
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Thu Oct 22 13:42:10 2009 +0200
reading xml for missing arguments
---
plugins/registration/app/models/register.rb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/plugins/registration/app/models/register.rb
b/plugins/registration/app/models/register.rb
index 84d8819..19fe485 100644
--- a/plugins/registration/app/models/register.rb
+++ b/plugins/registration/app/models/register.rb
@@ -27,7 +27,7 @@ class Register
@context = { 'yastcall' => '1',
'norefresh' => '1',
'restoreRepos' => '1',
- 'forcereg' => '0',
+ 'forcereg' => '1',
'nohwdata' => '1',
'nooptional' => '1',
'debugMode' => '2',
@@ -63,6 +63,8 @@ class Register
end
@reg = YastService.Call("YSR::statelessregister", ctx, args )
+ @arguments = Hash.from_xml(@reg['missingarguments']) if @reg.has_key?
'missingarguments'
+ @arguments = @arguments["opt"] if @arguments.has_key? "opt"
@reg['exitcode'] rescue 99
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
commit a9d78c7630619afc6869af7f530ace44d6e0f013
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Thu Oct 22 13:42:10 2009 +0200
reading xml for missing arguments
---
plugins/registration/app/models/register.rb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/plugins/registration/app/models/register.rb
b/plugins/registration/app/models/register.rb
index 84d8819..19fe485 100644
--- a/plugins/registration/app/models/register.rb
+++ b/plugins/registration/app/models/register.rb
@@ -27,7 +27,7 @@ class Register
@context = { 'yastcall' => '1',
'norefresh' => '1',
'restoreRepos' => '1',
- 'forcereg' => '0',
+ 'forcereg' => '1',
'nohwdata' => '1',
'nooptional' => '1',
'debugMode' => '2',
@@ -63,6 +63,8 @@ class Register
end
@reg = YastService.Call("YSR::statelessregister", ctx, args )
+ @arguments = Hash.from_xml(@reg['missingarguments']) if @reg.has_key?
'missingarguments'
+ @arguments = @arguments["opt"] if @arguments.has_key? "opt"
@reg['exitcode'] rescue 99
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |