mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 19:34:45 +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:
|
except KeyboardInterrupt:
|
||||||
p.wait()
|
p.wait()
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
return p.returncode
|
p.wait()
|
||||||
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
def main(options, args):
|
def main(options, args):
|
||||||
|
|||||||
@@ -313,8 +313,9 @@ def run_cmd(args):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.wait()
|
p.wait()
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
return p.returncode
|
p.wait()
|
||||||
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
def main(options, args):
|
def main(options, args):
|
||||||
|
|||||||
@@ -349,8 +349,9 @@ def run_cmd(args):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.wait()
|
p.wait()
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
return p.returncode
|
p.wait()
|
||||||
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
def main(options, args):
|
def main(options, args):
|
||||||
|
|||||||
Reference in New Issue
Block a user