Revision 3a522cff snf-cyclades-app/synnefo/api/util.py
b/snf-cyclades-app/synnefo/api/util.py | ||
---|---|---|
167 | 167 |
raise VirtualMachine.DeletedError |
168 | 168 |
if non_suspended and vm.suspended: |
169 | 169 |
raise Unauthorized("Administratively Suspended VM") |
170 |
return vm |
|
170 | 171 |
except ValueError: |
171 | 172 |
raise BadRequest('Invalid server ID.') |
172 | 173 |
except VirtualMachine.DoesNotExist: |
Also available in: Unified diff