Commit 34c3b27a authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix wrong import

parent 1716bb42
......@@ -18,9 +18,8 @@ from optparse import make_option
from import CommandError
from import SynnefoCommand
from import convert_api_faults
from import common
from synnefo.logic import ips
from synnefo.api import util
class Command(SynnefoCommand):
......@@ -42,7 +41,7 @@ class Command(SynnefoCommand):
help='The owner of the floating IP'),
def handle(self, *args, **options):
if args:
raise CommandError("Command doesn't accept any arguments")
......@@ -55,7 +54,8 @@ class Command(SynnefoCommand):
raise CommandError("'user' is required for floating IP creation")
if network_id is not None:
network = util.get_resource("network", network_id, for_update=True)
network = common.get_resource("network", network_id,
if network.deleted:
raise CommandError("Network '%s' is deleted" %
if not network.floating_ip_pool:
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