| |
@@ -62,7 +62,10 @@
|
| |
parser = argparse.ArgumentParser(description="Inventory for a QCow2 test image")
|
| |
parser.add_argument("--list", action="store_true", help="Verbose output")
|
| |
parser.add_argument('--host', help="Get host variables")
|
| |
- parser.add_argument("subjects", nargs="*", default=shlex.split(os.environ.get("TEST_SUBJECTS", "")))
|
| |
+
|
| |
+ default_subjects = os.environ.get("TEST_SUBJECTS", os.environ.get("TEST_ENV", ""))
|
| |
+ parser.add_argument("subjects", nargs="*", default=shlex.split(default_subjects))
|
| |
+
|
| |
opts = parser.parse_args()
|
| |
|
| |
try:
|
| |
@@ -119,7 +122,6 @@
|
| |
os.dup2(tty, 2)
|
| |
except OSError:
|
| |
tty = None
|
| |
- pass
|
| |
|
| |
# A directory for temporary stuff
|
| |
directory = tempfile.mkdtemp(prefix="inventory-cloud")
|
| |
Commit with test data is there so that you can understand the use case. There is still some work to be done, I'm looking for feedback here.
I will squash the commits once the change is done.
TODO: