@@ -49,15 +49,15 @@ def validate(machine)
49
49
# check if aliases option is an Array
50
50
if !machine . config . hostmanager . aliases . kind_of? ( Array ) &&
51
51
!machine . config . hostmanager . aliases . kind_of? ( String )
52
- errors << I18n . t ( 'vagrant_hostmanager.config.not_an_array_or_string' , {
52
+ errors << I18n . t ( 'vagrant_hostmanager.config.not_an_array_or_string' , ** {
53
53
:config_key => 'hostmanager.aliases' ,
54
54
:is_class => aliases . class . to_s ,
55
55
} )
56
56
end
57
57
58
58
if !machine . config . hostmanager . ip_resolver . nil? &&
59
59
!machine . config . hostmanager . ip_resolver . kind_of? ( Proc )
60
- errors << I18n . t ( 'vagrant_hostmanager.config.not_a_proc' , {
60
+ errors << I18n . t ( 'vagrant_hostmanager.config.not_a_proc' , ** {
61
61
:config_key => 'hostmanager.ip_resolver' ,
62
62
:is_class => ip_resolver . class . to_s ,
63
63
} )
@@ -72,7 +72,7 @@ def validate(machine)
72
72
def validate_bool ( key , value )
73
73
if ![ TrueClass , FalseClass ] . include? ( value . class ) &&
74
74
value != UNSET_VALUE
75
- I18n . t ( 'vagrant_hostmanager.config.not_a_bool' , {
75
+ I18n . t ( 'vagrant_hostmanager.config.not_a_bool' , ** {
76
76
:config_key => key ,
77
77
:value => value . class . to_s
78
78
} )
0 commit comments