Revision 064f42cd
b/snf-astakos-app/astakos/im/migrations/0027_rename_services_resources.py | ||
---|---|---|
11 | 11 |
try: |
12 | 12 |
s = orm.Service.objects.get(name='pithos+') |
13 | 13 |
except orm.Service.DoesNotExist: |
14 |
print "No service named 'pithos+' found."
|
|
14 |
pass
|
|
15 | 15 |
else: |
16 | 16 |
s.name = 'pithos' |
17 | 17 |
s.save() |
... | ... | |
46 | 46 |
try: |
47 | 47 |
s = orm.Service.objects.get(name='pithos') |
48 | 48 |
except orm.Service.DoesNotExist: |
49 |
print "No service named 'pithos' found."
|
|
49 |
pass
|
|
50 | 50 |
else: |
51 | 51 |
s.name = 'pithos+' |
52 | 52 |
s.save() |
Also available in: Unified diff