Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> network : Scr and YaPI exit maps return in different formats
  • From: Jiri Suchomel <jsuchome@xxxxxxx>
  • Date: Tue, 1 Sep 2009 14:55:30 +0200
  • Message-id: <E1MiTqS-0006mA-SI@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit 8ed7b72774e226adebdf9635b3f92c7ca0dbf1d5
Author: Jiri Suchomel <jsuchome@xxxxxxx>
Date: Tue Sep 1 14:55:30 2009 +0200

Scr and YaPI exit maps return in different formats
---
plugins/services/app/models/service.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/services/app/models/service.rb
b/plugins/services/app/models/service.rb
index 40ae6c3..3ab8f27 100644
--- a/plugins/services/app/models/service.rb
+++ b/plugins/services/app/models/service.rb
@@ -77,7 +77,7 @@ class Service
end

def read_status
- @status = save('status')['exit']
+ @status = save('status')[:exit]
end

# execute a service command (start, stop, ...)
@@ -108,7 +108,7 @@ class Service
end

Rails.logger.debug "Command returns: #{ret.inspect}"
- ret
+ ret.symbolize_keys!
end


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages