[PATCH] Fix a bad usage of execWithRedirect (#1197290)
David Shea
dshea at redhat.com
Mon Mar 2 17:09:56 UTC 2015
execWithRedirect returns an int, not a tuple, and the argv used to
execute realm still had the command as argv[0], which is no longer
needed.
---
pyanaconda/kickstart.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 756eb81..582ce0a 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -562,11 +562,11 @@ class Realm(commands.realm.F19_Realm):
# no explicit password arg using implicit --no-password
pw_args = ["--no-password"]
- argv = ["realm", "join", "--install", iutil.getSysroot(), "--verbose"] + \
+ argv = ["join", "--install", iutil.getSysroot(), "--verbose"] + \
pw_args + self.join_args
rc = -1
try:
- rc = iutil.execWithRedirect("realm", argv)[0]
+ rc = iutil.execWithRedirect("realm", argv)
except OSError:
pass
--
2.1.0
More information about the anaconda-patches
mailing list