diff options
author | 2018-09-19 16:28:10 +0100 | |
---|---|---|
committer | 2018-09-19 17:40:54 +0100 | |
commit | b6367aeb802a0032ff08bbf96af590c91c52d43e (patch) | |
tree | 7e87f1ec7343884a1480aed1e361838ab05005bf /xci/playbooks | |
parent | da13cd230fb877bbaa3037116f01e774d44c4b31 (diff) |
xci: Add ability to pass command line options to xci-deploy.sh
We now support multiple PDF files so instead of introducing another
env variable, we can simply pass this information as command line
arguments to xci-deploy.sh. We can extend the script to allow more
options line verbosity, scenario name, functest details etc so we
can get rid of multiple env variables.
Change-Id: I6c4a8d6e8b70e91746a659de923fee19019ed5e0
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks')
-rwxr-xr-x | xci/playbooks/dynamic_inventory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xci/playbooks/dynamic_inventory.py b/xci/playbooks/dynamic_inventory.py index 9a1624b0..f6e93398 100755 --- a/xci/playbooks/dynamic_inventory.py +++ b/xci/playbooks/dynamic_inventory.py @@ -74,8 +74,8 @@ class XCIInventory(object): self.args = parser.parse_args() def read_pdf_idf(self): - pdf_file = os.path.dirname(os.path.realpath(__file__)) + "/../var/pdf.yml" - idf_file = os.path.dirname(os.path.realpath(__file__)) + "/../var/idf.yml" + pdf_file = os.environ['PDF'] + idf_file = os.environ['IDF'] nodes = [] host_networks = {} |