mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 12:24:43 +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,7 +245,8 @@ def run_cmd(args):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.wait()
|
p.wait()
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
p.wait()
|
||||||
return p.returncode
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -313,7 +313,8 @@ def run_cmd(args):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.wait()
|
p.wait()
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
p.wait()
|
||||||
return p.returncode
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -349,7 +349,8 @@ def run_cmd(args):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.wait()
|
p.wait()
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
p.wait()
|
||||||
return p.returncode
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user