Merge pull request #10474 from briancain/ensure-install_type-set-with-version
Fixes #10358: Add validation error in salt provider for certain options
This commit is contained in:
commit
d561116d16
|
@ -177,6 +177,10 @@ module VagrantPlugins
|
||||||
errors << I18n.t("vagrant.provisioners.salt.python_version")
|
errors << I18n.t("vagrant.provisioners.salt.python_version")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if @version && !@install_type
|
||||||
|
errors << I18n.t("vagrant.provisioners.salt.version_type_missing")
|
||||||
|
end
|
||||||
|
|
||||||
return {"salt provisioner" => errors}
|
return {"salt provisioner" => errors}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2706,9 +2706,11 @@ en:
|
||||||
must_accept_keys: |-
|
must_accept_keys: |-
|
||||||
You must accept keys when running highstate with master!
|
You must accept keys when running highstate with master!
|
||||||
args_array: |-
|
args_array: |-
|
||||||
You must set this value as an array.
|
You must set `args_array` value as an array.
|
||||||
python_version: |-
|
python_version: |-
|
||||||
You must set this as an integer or string that represents an integer.
|
You must set `python_version` as an integer or string that represents an integer.
|
||||||
|
version_type_missing: |-
|
||||||
|
You must set the option `install_type` when specifying a `version`.
|
||||||
|
|
||||||
pushes:
|
pushes:
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in New Issue