From 637836b1f3b322a13354c4492b92d58ec9264b9e Mon Sep 17 00:00:00 2001 From: Piotr Bartman Date: Wed, 8 May 2024 18:50:45 +0200 Subject: [PATCH] updater: return 100 if no vm chosen --- vmupdate/vmupdate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmupdate/vmupdate.py b/vmupdate/vmupdate.py index 7ba10a3..eeb6ee5 100644 --- a/vmupdate/vmupdate.py +++ b/vmupdate/vmupdate.py @@ -53,6 +53,11 @@ def main(args=None, app=qubesadmin.Qubes()): log.error(str(err)) return 128 + if not targets: + if not args.quiet: + print("No qube selected for update") + return 100 + independent = [target for target in targets if target.klass in ( 'TemplateVM', 'StandaloneVM')] derived = [target for target in targets if target.klass not in (