$OpenBSD: patch-salt_modules_openbsdrcctl_py,v 1.7 2015/09/11 07:19:12 ajacoutot Exp $

https://github.com/saltstack/salt/commit/487c05f9e6c427f10fc9cb37d3bbd81f84bd01c2

--- salt/modules/openbsdrcctl.py.orig	Wed Sep  9 19:00:15 2015
+++ salt/modules/openbsdrcctl.py	Fri Sep 11 09:12:29 2015
@@ -91,12 +91,9 @@ def get_all():
 
         salt '*' service.get_all
     '''
-    badvar = ("_timeout", "_user")
     ret = []
     service = _cmd()
-    for svc in __salt__['cmd.run']('{0} getall'.format(service)).splitlines():
-        svc = re.sub('(_flags|)=.*$', '', svc)
-        if not svc.endswith(badvar):
+    for svc in __salt__['cmd.run']('{0} ls all'.format(service)).splitlines():
             ret.append(svc)
     return sorted(ret)
 
@@ -111,14 +108,10 @@ def get_disabled():
 
         salt '*' service.get_disabled
     '''
-    badvar = ("_timeout", "_user")
     ret = []
     service = _cmd()
-    for svc in __salt__['cmd.run']('{0} getall'.format(service)).splitlines():
-        if svc.endswith("=NO"):
-            svc = re.sub('(_flags|)=.*$', '', svc)
-            if not svc.endswith(badvar):
-                ret.append(svc)
+    for svc in __salt__['cmd.run']('{0} ls off'.format(service)).splitlines():
+            ret.append(svc)
     return sorted(ret)
 
 
@@ -132,14 +125,10 @@ def get_enabled():
 
         salt '*' service.get_enabled
     '''
-    badvar = ("_timeout", "_user")
     ret = []
     service = _cmd()
-    for svc in __salt__['cmd.run']('{0} getall'.format(service)).splitlines():
-        if not svc.endswith("=NO"):
-            svc = re.sub('(_flags|)=.*$', '', svc)
-            if not svc.endswith(badvar):
-                ret.append(svc)
+    for svc in __salt__['cmd.run']('{0} ls on'.format(service)).splitlines():
+            ret.append(svc)
     return sorted(ret)
 
 
