From b3191e32602b22096e7db066d591d406684e2e49 Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Aug 17 2018 14:47:20 +0000 Subject: add platform-python interpreter support to qcow2 inventory New rhel qcow2 might only have python if run /usr/libexec/platform-python --- diff --git a/inventory/standard-inventory-qcow2 b/inventory/standard-inventory-qcow2 index 4a60ff3..56b76ad 100755 --- a/inventory/standard-inventory-qcow2 +++ b/inventory/standard-inventory-qcow2 @@ -392,7 +392,7 @@ def inv_host(image): child = os.fork() if child: # Need to figure out what python interpreter to use - interpreters = ["/usr/bin/python2", "/usr/bin/python3"] + interpreters = ["/usr/bin/python2", "/usr/bin/python3", "/usr/libexec/platform-python"] for interpreter in interpreters: check_file = [ "/usr/bin/ansible",