diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-01-11 10:36:25 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2008-01-11 10:36:25 +0000 |
commit | 9161dcbbdc0d638c1f61e0090f8956bb7c4ad082 (patch) | |
tree | 3d334c6c8052de7a38f002f91b79ad302eeaa1f4 /ipa-python/ipautil.py | |
parent | bfb4564f9d9cc8e8a894b0fb9ac799a2da400e69 (diff) | |
download | freeipa-9161dcbbdc0d638c1f61e0090f8956bb7c4ad082.tar.gz freeipa-9161dcbbdc0d638c1f61e0090f8956bb7c4ad082.tar.xz freeipa-9161dcbbdc0d638c1f61e0090f8956bb7c4ad082.zip |
Add service.is_enabled() helper
Add a simple helper to check whether a service is enabled.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'ipa-python/ipautil.py')
-rw-r--r-- | ipa-python/ipautil.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipa-python/ipautil.py b/ipa-python/ipautil.py index c617854e5..32faabeab 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] |