Let users know we were not able to SSH into the VM to remove symlinks
This commit is contained in:
parent
9ebdc24da4
commit
199a14b61f
2 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
|
@env = env
|
||||||
@machine = env[:machine]
|
@machine = env[:machine]
|
||||||
|
|
||||||
if should_remove_symlinks?
|
if should_remove_symlinks?
|
||||||
|
@ -43,7 +44,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue Timeout::Error
|
rescue Timeout::Error
|
||||||
# We timed out, we failed.
|
@env[:ui].warn(I18n.t('vagrant_cachier.unable_to_ssh'))
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -11,6 +11,8 @@ en:
|
||||||
'%{current_path}' and it will be moved to
|
'%{current_path}' and it will be moved to
|
||||||
'%{new_path}' as it is the new path for keeping machine
|
'%{new_path}' as it is the new path for keeping machine
|
||||||
scoped cache dirs starting with the 0.3.0 version of the plugin.
|
scoped cache dirs starting with the 0.3.0 version of the plugin.
|
||||||
|
unable_to_ssh: |-
|
||||||
|
vagrant-cachier was unable to SSH into the VM to remove symlinks!
|
||||||
vagrant:
|
vagrant:
|
||||||
errors:
|
errors:
|
||||||
multiple_provider_specific_cache_dirs_found: |-
|
multiple_provider_specific_cache_dirs_found: |-
|
||||||
|
|
Loading…
Reference in a new issue