From 9161dcbbdc0d638c1f61e0090f8956bb7c4ad082 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 11 Jan 2008 10:36:25 +0000 Subject: Add service.is_enabled() helper Add a simple helper to check whether a service is enabled. Signed-off-by: Mark McLoughlin --- ipa-python/ipautil.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipa-python') diff --git a/ipa-python/ipautil.py b/ipa-python/ipautil.py index c617854e..32faabea 100644 --- a/ipa-python/ipautil.py +++ b/ipa-python/ipautil.py @@ -83,6 +83,8 @@ def run(args, stdin=None): if p.returncode != 0: raise CalledProcessError(p.returncode, ' '.join(args)) + return (stdout, stderr) + def file_exists(filename): try: mode = os.stat(filename)[stat.ST_MODE] -- cgit