mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Bring back name overriding that was erroneously skipped as a result of type checking.
This commit is contained in:
parent
d4ba15d298
commit
0d0b682c8a
@ -908,10 +908,10 @@ class State(object):
|
||||
if key == 'names':
|
||||
names.update(val)
|
||||
continue
|
||||
elif key == 'name':
|
||||
if not isinstance(val, string_types):
|
||||
# Invalid name, fall back to ID
|
||||
chunk[key] = name
|
||||
elif (key == 'name' and
|
||||
not isinstance(val, string_types)):
|
||||
# Invalid name, fall back to ID
|
||||
chunk[key] = name
|
||||
else:
|
||||
chunk.update(arg)
|
||||
if names:
|
||||
|
Loading…
Reference in New Issue
Block a user