Skip to content

Commit

Permalink
Give the ansible-playbook utility a blocking stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Nov 28, 2023
1 parent 6038690 commit 26deea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resalloc_ibm_cloud/ibm_cloud_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run_playbook(host, opts):
Run ansible-playbook against the given hostname
"""
cmd = ["ansible-playbook", opts.playbook, "--inventory", f"{host},"]
subprocess.check_call(cmd, stdout=sys.stderr)
subprocess.check_call(cmd, stdout=sys.stderr, stdin=subprocess.DEVNULL)


def _get_zone_and_subnet_id(opts):
Expand Down

0 comments on commit 26deea5

Please sign in to comment.