Add warning if machines provider does not support disk configuration

This commit is contained in:
Brian Cain 2019-11-22 14:38:42 -08:00
parent f8449063b6
commit f979d40436
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,8 @@ module Vagrant
if machine.provider.capability?(:configure_disks) if machine.provider.capability?(:configure_disks)
machine.provider.capability(:configure_disks, defined_disks) machine.provider.capability(:configure_disks, defined_disks)
else else
@logger.warn(":configure_disks capability not defined for provider, cannot configure disks") env[:ui].warn(I18n.t("vagrant.actions.disk.provider_unsupported",
provider: machine.provider_name))
end end
# Continue On # Continue On

View File

@ -2153,6 +2153,9 @@ en:
runner: runner:
waiting_cleanup: "Waiting for cleanup before exiting..." waiting_cleanup: "Waiting for cleanup before exiting..."
exit_immediately: "Exiting immediately, without cleanup!" exit_immediately: "Exiting immediately, without cleanup!"
disk:
provider_unsupported: |-
Guest provider '%{provider}' does not support the disk feature, and will not use the disk configuration defined.
vm: vm:
boot: boot:
booting: Booting VM... booting: Booting VM...