Skip to content
Snippets Groups Projects
Commit 7b8daabd authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[utils] Fix usage of new exclude argument

parent 40f919e4
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -99,6 +99,8 @@ class Command(BaseCommand): ...@@ -99,6 +99,8 @@ class Command(BaseCommand):
with tarfile.open(arguments['backup']) as tar: with tarfile.open(arguments['backup']) as tar:
tar.extractall(tmpdir) tar.extractall(tmpdir)
exclude = arguments.get('exclude')
arguments = dict( arguments = dict(
verbosity=arguments.get('verbosity'), verbosity=arguments.get('verbosity'),
interactive=False, interactive=False,
...@@ -119,7 +121,7 @@ class Command(BaseCommand): ...@@ -119,7 +121,7 @@ class Command(BaseCommand):
# and loads the apps respecting the imposed order # and loads the apps respecting the imposed order
for app in APPS: for app in APPS:
if app in arguments.get('exclude'): continue if app in exclude: continue
# copy prefix data # copy prefix data
path = os.path.join(settings.PREFIX, app) path = os.path.join(settings.PREFIX, app)
srcdir = os.path.join(tmpdir, 'prefix', app) srcdir = os.path.join(tmpdir, 'prefix', app)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment