Revision b050e382 snf-cyclades-app/synnefo/logic/backend.py

b/snf-cyclades-app/synnefo/logic/backend.py
519 519
                # TODO: What to raise here ?
520 520
                raise Exception("LALA")
521 521
            else:
522
                depend_jobs.append(create_network(network, backend,
523
                                                  connect=True))
522
                jobs = create_network(network, backend, connect=True)
523
                if isinstance(jobs, list):
524
                    depend_jobs.extend(jobs)
525
                else:
526
                    depend_jobs.append(jobs)
524 527
    kw["depends"] = [[job, ["success", "error", "canceled"]]
525 528
                     for job in depend_jobs]
526 529

  

Also available in: Unified diff