diff options
author | Maciej Kisielewski <maciej.kisielewski@canonical.com> | 2022-06-30 18:44:01 +0200 |
---|---|---|
committer | Maciej Kisielewski <maciej.kisielewski@canonical.com> | 2022-06-30 18:46:04 +0200 |
commit | b32439bd0b2f35fa454a5604016d299834314ccc (patch) | |
tree | 4b43f787250732ef510b3f5ca6d4a17a8ab3e6f2 | |
parent | 0bc1f6761099d405269e19b121e5c3250fce5fe5 (diff) |
bring back the code that waits and checks the manipulation
I think I accidentally removed the code that for non-zapper branch of logic waited for the manipulation to be done. Fixes: LP: #1980372
-rwxr-xr-x | bin/removable_storage_watcher.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/removable_storage_watcher.py b/bin/removable_storage_watcher.py index 7208954..988abc3 100755 --- a/bin/removable_storage_watcher.py +++ b/bin/removable_storage_watcher.py @@ -948,6 +948,10 @@ def main(): else: print("\n\n{} NOW\n\n".format(args.action.upper()), flush=True) + try: + return listener.check(args.timeout) + except KeyboardInterrupt: + return 1 if __name__ == "__main__": |