osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37885?usp=email )
Change subject: testenv: set args.podman = False if action != "run" ......................................................................
testenv: set args.podman = False if action != "run"
Fix "./testenv.py clean":
File "/home/user/code/osmo-dev/src/osmo-ttcn3-hacks/_testenv/testenv/cmd.py", line 85, in run if not no_podman and testenv.args.podman: ^^^^^^^^^^^^^^^^^^^ AttributeError: 'Namespace' object has no attribute 'podman'
Change-Id: I44d5229aa481bfed13c006368d590e1486536c0e --- M _testenv/testenv/__init__.py 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: pespin: Looks good to me, approved osmith: Verified
diff --git a/_testenv/testenv/__init__.py b/_testenv/testenv/__init__.py index fe9a612..87485c7 100644 --- a/_testenv/testenv/__init__.py +++ b/_testenv/testenv/__init__.py @@ -145,6 +145,9 @@ if args.binary_repo and args.binary_repo.endswith(":latest"): logging.debug("Binary repository ends in :latest, using latest configs") args.latest = True + else: + # podman is only used in "testenv run" + args.podman = False
def verify_args_run():