ref: refs/heads/network
commit 7a1bccdd42ee66692ff077c86ae3c902bfedabcf
Author: Ladislav Slezak
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@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org