Fixes issue with failure messages (#58173)

pull/58200/head
Wojciech Wypior 6 years ago committed by Tim Rupp
parent becca36c5e
commit cee3d539cb

@ -496,8 +496,12 @@ class ModuleManager(object):
self.want.tenants self.want.tenants
) )
response = self.client.api.delete(uri) response = self.client.api.delete(uri)
if response.status == 200: if response.status != 200:
return True result = response.json()
errors = self._get_errors_from_response(result)
if errors:
message = "{0}".format('. '.join(errors))
raise F5ModuleError(message)
raise F5ModuleError(response.content) raise F5ModuleError(response.content)

Loading…
Cancel
Save