From 80087699c8449dd862f73ae4edeb949efd36cc61 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 4 Dec 2012 13:56:26 -0600 Subject: doc: wrote devel docs for client tool base objects --- src/lib/Bcfg2/Client/Tools/SMF.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/Bcfg2/Client/Tools/SMF.py') diff --git a/src/lib/Bcfg2/Client/Tools/SMF.py b/src/lib/Bcfg2/Client/Tools/SMF.py index 43e4b3bf5..4409b40f3 100644 --- a/src/lib/Bcfg2/Client/Tools/SMF.py +++ b/src/lib/Bcfg2/Client/Tools/SMF.py @@ -10,9 +10,7 @@ class SMF(Bcfg2.Client.Tools.SvcTool): """Support for Solaris SMF Services.""" __handles__ = [('Service', 'smf')] __execs__ = ['/usr/sbin/svcadm', '/usr/bin/svcs'] - name = 'SMF' - __req__ = {'Service': ['name', 'status']} - __ireq__ = {'Service': ['name', 'status', 'FMRI']} + __req__ = {'Service': ['name', 'status', 'FMRI']} def get_svc_command(self, service, action): if service.get('type') == 'lrc': @@ -128,6 +126,6 @@ class SMF(Bcfg2.Client.Tools.SvcTool): for svc in self.getSupportedEntries(): if svc.get("FMRI") in allsrv: - allsrv.remove(svc.get('FMRI')) + allsrv.remove(svc.get('FMRI')) return [Bcfg2.Client.XML.Element("Service", type='smf', name=name) \ for name in allsrv] -- cgit v1.2.3-1-g7c22