Revision 495e2be8 snf-cyclades-app/synnefo/api/management/commands/floating-ip-dettach.py

b/snf-cyclades-app/synnefo/api/management/commands/floating-ip-dettach.py
37 37
from synnefo.management.common import get_floating_ip_by_address
38 38
from synnefo.logic import backend
39 39

  
40

  
41 40
class Command(BaseCommand):
42 41
    can_import_settings = True
43 42
    output_transaction = True
......
45 44
    help = "Dettach a floating IP from a VM or router"
46 45

  
47 46
    def handle(self, *args, **options):
48
        if not args or len(args) > 1:
47
        if not args or len(args)>1:
49 48
            raise CommandError("Command accepts exactly one argument")
50 49

  
51 50
        address = args[0]

Also available in: Unified diff