summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r--src/lib/Client/Tools/SMF.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/SMF.py b/src/lib/Client/Tools/SMF.py
index ce4d8261d..0dae28356 100644
--- a/src/lib/Client/Tools/SMF.py
+++ b/src/lib/Client/Tools/SMF.py
@@ -23,6 +23,7 @@ class SMF(Bcfg2.Client.Tools.Tool):
else:
self.logger.info('Failed to locate FMRI for service %s' % entry.get('name'))
return False
+ return True
def VerifyService(self, entry, _):
'''Verify SMF Service Entry'''
@@ -42,7 +43,7 @@ class SMF(Bcfg2.Client.Tools.Tool):
self.logger.debug("No service matching %s" % (entry.get("FMRI")))
return entry.get('status') == 'off'
try:
- srvdata = self.cmd.run("/usr/bin/svcs -H -o STA %s" % entry.get('name'))[1][0].split()
+ srvdata = self.cmd.run("/usr/bin/svcs -H -o STA %s" % entry.get('FMRI'))[1][0].split()
except IndexError:
# Ocurrs when no lines are returned (service not installed)
return False