Add warning if machines provider does not support disk configuration
This commit is contained in:
parent
f8449063b6
commit
f979d40436
|
@ -15,7 +15,8 @@ module Vagrant
|
|||
if machine.provider.capability?(:configure_disks)
|
||||
machine.provider.capability(:configure_disks, defined_disks)
|
||||
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
|
||||
|
||||
# Continue On
|
||||
|
|
|
@ -2153,6 +2153,9 @@ en:
|
|||
runner:
|
||||
waiting_cleanup: "Waiting for cleanup before exiting..."
|
||||
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:
|
||||
boot:
|
||||
booting: Booting VM...
|
||||
|
|
Loading…
Reference in New Issue