Revision 527c7a7b snf-cyclades-app/synnefo/logic/backend.py

b/snf-cyclades-app/synnefo/logic/backend.py
520 520
                      " ACTIVE in backend %s." % (network, backend)
521 521
                raise Exception(msg)
522 522
            else:
523
                depend_jobs.append(create_network(network, backend,
524
                                                  connect=True))
523
                jobs = create_network(network, backend, connect=True)
524
                if isinstance(jobs, list):
525
                    depend_jobs.extend(jobs)
526
                else:
527
                    depend_jobs.append(jobs)
525 528
    kw["depends"] = [[job, ["success", "error", "canceled"]]
526 529
                     for job in depend_jobs]
527 530

  

Also available in: Unified diff