diff --git a/examples/domain-events/events-python/event-test.py b/examples/domain-events/events-python/event-test.py index 76fda2bb4de8f71399e0b74cedbdeaddd0d7b157..9018366512a19d6375ddaaaecea344497b84f01c 100644 --- a/examples/domain-events/events-python/event-test.py +++ b/examples/domain-events/events-python/event-test.py @@ -486,8 +486,8 @@ def main(): usage() sys.exit() - if len(sys.argv) > 1: - uri = sys.argv[1] + if len(args) >= 1: + uri = args[0] else: uri = "qemu:///system"