|
|
@ -1100,7 +1100,7 @@ class ModuleManager(object):
|
|
|
|
except ValueError as ex:
|
|
|
|
except ValueError as ex:
|
|
|
|
raise F5ModuleError(str(ex))
|
|
|
|
raise F5ModuleError(str(ex))
|
|
|
|
|
|
|
|
|
|
|
|
if 'code' in response and response['code'] in [400, 403]:
|
|
|
|
if 'code' in response and response['code'] in [400, 403, 404]:
|
|
|
|
if 'message' in response:
|
|
|
|
if 'message' in response:
|
|
|
|
raise F5ModuleError(response['message'])
|
|
|
|
raise F5ModuleError(response['message'])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
@ -1147,7 +1147,7 @@ class ModuleManager(object):
|
|
|
|
except ValueError as ex:
|
|
|
|
except ValueError as ex:
|
|
|
|
raise F5ModuleError(str(ex))
|
|
|
|
raise F5ModuleError(str(ex))
|
|
|
|
|
|
|
|
|
|
|
|
if 'code' in response and response['code'] == 400:
|
|
|
|
if 'code' in response and response['code'] in [400, 403, 404]:
|
|
|
|
if 'message' in response:
|
|
|
|
if 'message' in response:
|
|
|
|
raise F5ModuleError(response['message'])
|
|
|
|
raise F5ModuleError(response['message'])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|