Skip to content

Commit

Permalink
qvm-template: Fix missing args for install operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyPillow committed Aug 7, 2020
1 parent 42a741c commit 87c08c9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions qubesadmin/tools/qvm_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ def parser_add_command(cmd, help_str, add_help=True):
help='Set repository metadata as expired before running the command.')
parser_main.add_argument('--cachedir', default=CACHE_DIR,
help='Specify cache directory.')
# qvm-template download
parser_download = parser_add_command('download',
help_str='Download template package.')
parser_download.add_argument('--downloaddir', default='.',
help='Specify download directory.')
parser_download.add_argument('--retries', default=5, type=int,
help='Specify number of retries for downloads.')
parser_download.add_argument('templates', nargs='*', metavar='TEMPLATE')
# qvm-template {install,reinstall,downgrade,upgrade}
parser_install = parser_add_command('install',
help_str='Install template packages.')
Expand All @@ -97,6 +89,16 @@ def parser_add_command(cmd, help_str, add_help=True):
parser_x.add_argument('--allow-pv', action='store_true',
help='Allow setting virt_mode to pv in configuration file.')
parser_x.add_argument('templates', nargs='*', metavar='TEMPLATE')
# qvm-template download
parser_download = parser_add_command('download',
help_str='Download template package.')
for parser_x in [parser_install, parser_reinstall,
parser_downgrade, parser_upgrade, parser_download]:
parser_x.add_argument('--downloaddir', default='.',
help='Specify download directory.')
parser_x.add_argument('--retries', default=5, type=int,
help='Specify number of retries for downloads.')
parser_download.add_argument('templates', nargs='*', metavar='TEMPLATE')
# qvm-template {list,info}
parser_list = parser_add_command('list',
help_str='List templates.')
Expand Down

0 comments on commit 87c08c9

Please sign in to comment.