mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
when interacting with the django.command module via the salt api, there are some kwargs that get passed that start with dunders, so we're escaping dunders for now. Maybe there is a better way to do this?
This commit is contained in:
parent
4222eb2505
commit
2ebc4a95dd
@ -30,6 +30,7 @@ def command(settings_module,
|
|||||||
cmd = "{0} --{1}".format(cmd, arg)
|
cmd = "{0} --{1}".format(cmd, arg)
|
||||||
|
|
||||||
for key, value in kwargs.iteritems():
|
for key, value in kwargs.iteritems():
|
||||||
|
if not key.startswith("__"):
|
||||||
cmd = '{0} --{1}={2}'.format(cmd, key, value)
|
cmd = '{0} --{1}={2}'.format(cmd, key, value)
|
||||||
|
|
||||||
return __salt__['cmd.run'](cmd)
|
return __salt__['cmd.run'](cmd)
|
||||||
@ -110,7 +111,6 @@ def collectstatic(settings_module,
|
|||||||
link=False,
|
link=False,
|
||||||
no_default_ignore=False,
|
no_default_ignore=False,
|
||||||
pythonpath=None):
|
pythonpath=None):
|
||||||
|
|
||||||
da = _get_django_admin(bin_env)
|
da = _get_django_admin(bin_env)
|
||||||
cmd = "{0} collectstatic --settings={1} --noinput".format(
|
cmd = "{0} collectstatic --settings={1} --noinput".format(
|
||||||
da, settings_module)
|
da, settings_module)
|
||||||
|
Loading…
Reference in New Issue
Block a user