add capability test before attemping to use capability
This commit is contained in:
parent
0dc3798908
commit
2dfe520eb8
|
@ -28,7 +28,9 @@ module VagrantPlugins
|
|||
error_key: :rename_computer_failed)
|
||||
|
||||
# Don't continue until the machine has shutdown and rebooted
|
||||
machine.guest.capability(:wait_for_reboot)
|
||||
if machine.guest.capability?(:wait_for_reboot)
|
||||
machine.guest.capability(:wait_for_reboot)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue