Revision 21c9042c snf-cyclades-app/synnefo/logic/management/commands/pool-create.py
b/snf-cyclades-app/synnefo/logic/management/commands/pool-create.py | ||
---|---|---|
71 | 71 |
|
72 | 72 |
pool_table = pool_table_from_type(type_) |
73 | 73 |
|
74 |
if pool_table.objects.exists(): |
|
75 |
raise CommandError("Pool of type %s already exists" % type_) |
|
76 |
|
|
74 | 77 |
pool_table.objects.create(available_map="", |
75 | 78 |
reserved_map="", |
76 | 79 |
size=size, |
Also available in: Unified diff