Fix merge_configs.py file when not provide vars parameter
Use dict.pop(key, None) instead of del dict[key]. dict.pop will not raise any error when the key is not exist. TrivialFix Change-Id: I3808fc865afe6936a5d93eff792e1d1a93ba2085
This commit is contained in:
parent
9df73ecc83
commit
5cb0e00b77
@ -80,8 +80,8 @@ class ActionModule(action.ActionBase):
|
|||||||
fakefile.close()
|
fakefile.close()
|
||||||
|
|
||||||
new_module_args = self._task.args.copy()
|
new_module_args = self._task.args.copy()
|
||||||
del new_module_args['vars']
|
new_module_args.pop('vars', None)
|
||||||
del new_module_args['sources']
|
new_module_args.pop('sources', None)
|
||||||
|
|
||||||
new_module_args.update(
|
new_module_args.update(
|
||||||
dict(
|
dict(
|
||||||
|
Loading…
Reference in New Issue
Block a user