Skip to content

Commit

Permalink
updater: return 100 if no vm chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed May 27, 2024
1 parent 78e2b8d commit 637836b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vmupdate/vmupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 637836b

Please sign in to comment.