Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> network : search for a LSB service if custom service is not defined (file missing)
  • From: Ladislav Slezak <lslezak@xxxxxxxxxx>
  • Date: Thu, 27 Aug 2009 11:44:56 +0200
  • Message-id: <E1MiTqO-0006ht-VP@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit 7a1bccdd42ee66692ff077c86ae3c902bfedabcf
Author: Ladislav Slezak <lslezak@xxxxxxxxxx>
Date: Thu Aug 27 11:41:27 2009 +0200

search for a LSB service if custom service is not defined (file missing)
---
plugins/services/app/models/service.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugins/services/app/models/service.rb
b/plugins/services/app/models/service.rb
index e57334c..978f0de 100644
--- a/plugins/services/app/models/service.rb
+++ b/plugins/services/app/models/service.rb
@@ -83,6 +83,9 @@ class Service
begin
cfg = YaST::ConfigFile.new(:custom_services)
custom_service = cfg[self.name]
+ rescue YaST::ConfigFile::NotFoundError
+ Rails.logger.debug "No custom service defined"
+ custom_service = nil
rescue Exception => e
Rails.logger.error "looking for service #{self.name}: #{e}"
return { :stderr => e }
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages