Revision 99a74636 snf-cyclades-app/synnefo/api/actions.py

b/snf-cyclades-app/synnefo/api/actions.py
340 340
    try:  # attachment string: nic-<vm-id>-<nic-index>
341 341
        server_id = args.get('attachment', None).split('-')[1]
342 342
        nic_index = args.get('attachment', None).split('-')[2]
343
    except AttributeError:
344
        raise BadRequest("Malformed Request")
343 345
    except IndexError:
344 346
        raise BadRequest('Malformed Network Interface Id')
345 347

  

Also available in: Unified diff