summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-03 18:02:58 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-01-03 18:02:58 -0700
commitbb6e9cfe9ff25f3a018b23785f71302911eab435 (patch)
tree97ab1702d7dae6d2429788fbf9ada3f40c9d7926 /ipalib/plugable.py
parent6b6e6b1cab7a633faf16631a565ecb6988dadb48 (diff)
downloadfreeipa-bb6e9cfe9ff25f3a018b23785f71302911eab435.tar.gz
freeipa-bb6e9cfe9ff25f3a018b23785f71302911eab435.tar.xz
freeipa-bb6e9cfe9ff25f3a018b23785f71302911eab435.zip
Plugin.call() now uses errors2 version of SubprocessError
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 094634d33..f7baa2a1f 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -291,9 +291,9 @@ class Plugin(ReadOnly):
"""
argv = (executable,) + args
self.debug('Calling %r', argv)
- returncode = subprocess.call(argv)
- if returncode != 0:
- raise errors.SubprocessError(returncode, argv)
+ code = subprocess.call(argv)
+ if code != 0:
+ raise errors2.SubprocessError(returncode=code, argv=argv)
def __repr__(self):
"""