mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Merge remote branch 'public/integration'
This commit is contained in:
commit
e5d5b072db
5 changed files with 92 additions and 57 deletions
|
@ -160,6 +160,9 @@ class Runner(object):
|
|||
cmd.extend(['--extra-vars', extra_vars])
|
||||
cmd = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False)
|
||||
out, err = cmd.communicate()
|
||||
rc = cmd.returncode
|
||||
if rc:
|
||||
raise errors.AnsibleError("%s: %s" % (host_list, err))
|
||||
try:
|
||||
groups = utils.json_loads(out)
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue