Commit d0138201 authored by Olga Brani's avatar Olga Brani
Browse files

Migration fix

parent 5f81dd45
......@@ -21,10 +21,14 @@ class Migration(DataMigration):
s, created = orm.Service.objects.get_or_create(name = sn)
for rn, l in policy.iteritems():
r, created = orm.Resource.objects.get_or_create(
service = s,
name = rn
)
try:
r, created = orm.Resource.objects.get_or_create(
service = s,
name = rn
)
except Exception, e:
print "Cannot create policy ", policy
continue
q, created = orm.AstakosGroupQuota.objects.get_or_create(
group = default,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment