qvm-template: only ask for confirmation during install if something is being done
This commit is contained in:
parent
764a56ade1
commit
dedf5ac6e6
@ -988,9 +988,12 @@ def install(
|
|||||||
for name in dl_list:
|
for name in dl_list:
|
||||||
override_tpls.append(name)
|
override_tpls.append(name)
|
||||||
|
|
||||||
confirm_action(
|
# Only confirm if we have something to do
|
||||||
'This will override changes made in the following VMs:',
|
# since confiming w/ an empty list is probably silly
|
||||||
override_tpls)
|
if override_tpls:
|
||||||
|
confirm_action(
|
||||||
|
'This will override changes made in the following VMs:',
|
||||||
|
override_tpls)
|
||||||
|
|
||||||
package_hdrs = download(args, app,
|
package_hdrs = download(args, app,
|
||||||
dl_list=dl_list,
|
dl_list=dl_list,
|
||||||
|
Loading…
Reference in New Issue
Block a user