remove unecessary check

This commit is contained in:
Adrien Delorme 2020-10-05 15:32:32 +02:00
parent fcaf766569
commit 4cb218749b
1 changed files with 0 additions and 3 deletions

View File

@ -183,9 +183,6 @@ func (cfg *PackerConfig) Initialize() hcl.Diagnostics {
continue
}
value, _ := variable.Value()
if !value.IsWhollyKnown() && value.IsNull() && !value.Type().Equals(cty.String) {
continue
}
_ = cty.Walk(value, func(_ cty.Path, nested cty.Value) (bool, error) {
if nested.IsWhollyKnown() && !nested.IsNull() && nested.Type().Equals(cty.String) {
packer.LogSecretFilter.Set(nested.AsString())