make it explicit that we want to delete these keys

This commit is contained in:
Michael Calmer 2016-12-16 09:40:58 +01:00
parent 4c710139b5
commit e7292fabb7

View File

@ -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,