Commit 6322cbfd authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Warning about missing setting to migration file

parent 61c7a56c
......@@ -10,11 +10,15 @@ class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
(ip, port, username, password) = settings.GANETI_CLUSTER_INFO
cluster_info = settings.GANETI_CLUSTER_INFO
except AttributeError:
raise AttributeError("Missing settings GANETI_CLUSTER_INFO")
(ip, port, username, password) = cluster_info
backend = orm.Backend.objects.create(clustername = ip,
port = port,
username = username,
password = password)
port = port,
username = username,
password = password)
for vm in orm.VirtualMachine.objects.all():
vm.backend = backend
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