Skip to content

Commit

Permalink
hack around python vs python3 binary names
Browse files Browse the repository at this point in the history
this is a hack! please remove once we don't need any python2 support
anymore and replace with a python3 shebang
  • Loading branch information
evgeni committed Jul 1, 2022
1 parent a12d0dc commit 574b13c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inventories/vagrant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
#!/usr/bin/env bash
# this is a very crude hack and can be removed once we have no more python2 systems
# that need to run this code
"exec" "$(command -v python3 || command -v python)" "$0" "$@"
# Adapted from Mark Mandel's implementation
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py
import argparse
Expand Down

0 comments on commit 574b13c

Please sign in to comment.