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:
Thomas Woerner
2019-08-06 11:32:55 +02:00
parent b636ab3112
commit 45af7348fe
3 changed files with 9 additions and 6 deletions

View File

@@ -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):

View File

@@ -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):

View File

@@ -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):