qvm-template: only ask for confirmation during install if something is being done

This commit is contained in:
WillyPillow 2021-02-21 02:09:23 +08:00
parent 764a56ade1
commit dedf5ac6e6
No known key found for this signature in database
GPG Key ID: 3839E194B1415A9C

View File

@ -988,6 +988,9 @@ def install(
for name in dl_list: for name in dl_list:
override_tpls.append(name) override_tpls.append(name)
# Only confirm if we have something to do
# since confiming w/ an empty list is probably silly
if override_tpls:
confirm_action( confirm_action(
'This will override changes made in the following VMs:', 'This will override changes made in the following VMs:',
override_tpls) override_tpls)