mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #40404 from roaldnefs/fix-djangomod-loaddata
Fix for fixtures in the djangomod module
This commit is contained in:
commit
313d21626f
1 changed files with 5 additions and 4 deletions
|
@ -161,18 +161,19 @@ def loaddata(settings_module,
|
|||
salt '*' django.loaddata <settings_module> <comma delimited list of fixtures>
|
||||
|
||||
'''
|
||||
|
||||
args = []
|
||||
kwargs = {}
|
||||
if database:
|
||||
kwargs['database'] = database
|
||||
|
||||
cmd = '{0} {1}'.format('loaddata', ' '.join(fixtures.split(',')))
|
||||
|
||||
return command(settings_module,
|
||||
'loaddata',
|
||||
cmd,
|
||||
bin_env,
|
||||
pythonpath,
|
||||
env,
|
||||
*fixtures.split(','),
|
||||
**kwargs)
|
||||
*args, **kwargs)
|
||||
|
||||
|
||||
def collectstatic(settings_module,
|
||||
|
|
Loading…
Add table
Reference in a new issue