Revision ab419f67 snf-cyclades-app/synnefo/db/migrations/0035_default_backend.py

b/snf-cyclades-app/synnefo/db/migrations/0035_default_backend.py
11 11
    def forwards(self, orm):
12 12
        "Write your forwards methods here."
13 13
        try:
14
            # Do NOT import external code as can be depricated when the
15
            # migration will run
14 16
            cluster_info = settings.GANETI_CLUSTER_INFO
15
        except AttributeError:
16
            raise AttributeError("Missing settings GANETI_CLUSTER_INFO")
17
        except (AttributeError, ImportError):
18
            return
19

  
17 20
        (ip, port, username, password) = cluster_info
18 21
        backend = orm.Backend.objects.create(clustername = ip,
19 22
                                             port = port,

Also available in: Unified diff