diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-11-30 15:28:09 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-11-30 15:28:41 -0500 |
commit | 7c2c2d6130648fb6dd7c0e52d802cc6eff39ef95 (patch) | |
tree | dd7e58b79a237757406bca959c2fff733ad09798 /ipaserver/install/service.py | |
parent | 29aa8fb05dbebe96ba44a4f6547cb7580562ef48 (diff) | |
download | freeipa-7c2c2d6130648fb6dd7c0e52d802cc6eff39ef95.tar.gz freeipa-7c2c2d6130648fb6dd7c0e52d802cc6eff39ef95.tar.xz freeipa-7c2c2d6130648fb6dd7c0e52d802cc6eff39ef95.zip |
Add option to have ipautil.run() not raise an exception
There are times where a caller will want to determine the course of
action based on the returncode instead of relying on it != 0.
This also lets the caller get the contents of stdout and stderr.
Diffstat (limited to 'ipaserver/install/service.py')
-rw-r--r-- | ipaserver/install/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index a07a382ab..758688982 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -54,7 +54,7 @@ def chkconfig_del(service_name): ipautil.run(["/sbin/chkconfig", "--del", service_name]) def is_enabled(service_name): - (stdout, stderr) = ipautil.run(["/sbin/chkconfig", "--list", service_name]) + (stdout, stderr, returncode) = ipautil.run(["/sbin/chkconfig", "--list", service_name]) runlevels = {} for runlevel in range(0, 7): |