mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Rename klass to valtype
This commit is contained in:
parent
89cdf976e1
commit
d8a84b3017
1 changed files with 3 additions and 3 deletions
|
@ -21,10 +21,10 @@ def update(dest, upd):
|
|||
for key, val in six.iteritems(upd):
|
||||
try:
|
||||
if isinstance(val, OrderedDict):
|
||||
klass = OrderedDict
|
||||
valtype = OrderedDict
|
||||
else:
|
||||
klass = dict
|
||||
dest_subkey = dest.get(key, klass())
|
||||
valtype = dict
|
||||
dest_subkey = dest.get(key, valtype())
|
||||
except AttributeError:
|
||||
dest_subkey = None
|
||||
if isinstance(dest_subkey, collections.Mapping) \
|
||||
|
|
Loading…
Add table
Reference in a new issue