Skip to content

Commit

Permalink
fix(playbooks): pre v5.1 compatibility for playbooks folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed May 7, 2020
1 parent a8688db commit 08bc61a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ def run_playbook(playbook_name, sudo=False, extra_vars=None):
else:
cwd = os.path.join(os.path.expanduser('~'), 'bench')

success = subprocess.check_call(args, cwd=os.path.join(cwd, 'bench', 'playbooks'), stdout=log_stream, stderr=sys.stderr)
playbooks_locations = [os.path.join(cwd, 'bench', 'playbooks'), os.path.join(cwd, 'playbooks')]
playbooks_folder = [x for x in playbooks_locations if os.path.exists(x)][0]

success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
return success


Expand Down

0 comments on commit 08bc61a

Please sign in to comment.