server side cleanups and fixed for pandora_client sync
This commit is contained in:
parent
62659b107d
commit
eb1170cf95
8 changed files with 88 additions and 61 deletions
|
|
@ -47,6 +47,7 @@ def update_or_create_instance(volume, f):
|
|||
updated=True
|
||||
if updated:
|
||||
instance.save()
|
||||
instance.file.save()
|
||||
else:
|
||||
instance = models.Instance()
|
||||
instance.volume = volume
|
||||
|
|
@ -54,6 +55,7 @@ def update_or_create_instance(volume, f):
|
|||
for key in _INSTANCE_KEYS:
|
||||
setattr(instance, key, f[key])
|
||||
instance.save()
|
||||
instance.file.save()
|
||||
return instance
|
||||
|
||||
@task(ignore_resulsts=True, queue='default')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue