diff options
| author | Thomas Haller <thaller@redhat.com> | 2022-12-09 10:16:16 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2022-12-09 10:16:36 +0100 |
| commit | 135bbcc0e4f587770ef059ef48cb5501ab72e318 (patch) | |
| tree | 9759624fcd27a73a3a9847ce5379e25aad9dd219 /examples/python/gi | |
| parent | 176f1928d4ef6dbc8f21c688d59c7e16fbfcbca1 (diff) | |
| download | NetworkManager-135bbcc0e4f587770ef059ef48cb5501ab72e318.tar.gz | |
examples: fix handling "--last" argument in "examples/python/gi/checkpoint.py"
Fixes: 3ce3ed4c92fb ('examples: improve finding last checkpoint in "checkpoint.py"')
Diffstat (limited to 'examples/python/gi')
| -rwxr-xr-x | examples/python/gi/checkpoint.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/python/gi/checkpoint.py b/examples/python/gi/checkpoint.py index 6f3194cdb1..6e94b07cbe 100755 --- a/examples/python/gi/checkpoint.py +++ b/examples/python/gi/checkpoint.py @@ -80,10 +80,10 @@ def find_checkpoint_last(nmc): def validate_path(path, nmc): if path == "--last": - path = find_checkpoint_last(nmc) - if path is None: + c = find_checkpoint_last(nmc) + if c is None: sys.exit("Has no checkpoint") - return path + return c.get_path() try: num = int(path) |
