mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +00:00
utils/ansible-ipa-[server,replica,client]-install: Add p.wait() for returncode
The p.wait() call has been missing in the normal case, therefore no proper returncode has been returned.
This commit is contained in:
@@ -245,8 +245,9 @@ def run_cmd(args):
|
||||
except KeyboardInterrupt:
|
||||
p.wait()
|
||||
raise
|
||||
|
||||
return p.returncode
|
||||
else:
|
||||
p.wait()
|
||||
return p.returncode
|
||||
|
||||
|
||||
def main(options, args):
|
||||
|
||||
@@ -313,8 +313,9 @@ def run_cmd(args):
|
||||
except KeyboardInterrupt:
|
||||
p.wait()
|
||||
raise
|
||||
|
||||
return p.returncode
|
||||
else:
|
||||
p.wait()
|
||||
return p.returncode
|
||||
|
||||
|
||||
def main(options, args):
|
||||
|
||||
@@ -349,8 +349,9 @@ def run_cmd(args):
|
||||
except KeyboardInterrupt:
|
||||
p.wait()
|
||||
raise
|
||||
|
||||
return p.returncode
|
||||
else:
|
||||
p.wait()
|
||||
return p.returncode
|
||||
|
||||
|
||||
def main(options, args):
|
||||
|
||||
Reference in New Issue
Block a user