mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
make it explicit that we want to delete these keys
This commit is contained in:
parent
4c710139b5
commit
e7292fabb7
@ -5882,11 +5882,11 @@ def sls_build(name, base='opensuse/python', mods=None, saltenv='base',
|
||||
'''
|
||||
|
||||
create_kwargs = salt.utils.clean_kwargs(**copy.deepcopy(kwargs))
|
||||
create_kwargs.pop('image', '')
|
||||
create_kwargs.pop('name', '')
|
||||
create_kwargs.pop('cmd', '')
|
||||
create_kwargs.pop('interactive', True)
|
||||
create_kwargs.pop('tty', True)
|
||||
for key in ('image', 'name', 'cmd', 'interactive', 'tty'):
|
||||
try:
|
||||
del create_kwargs[key]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
# start a new container
|
||||
ret = __salt__['dockerng.create'](image=base,
|
||||
|
Loading…
Reference in New Issue
Block a user