mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
parent
fd2e0ddcac
commit
48704d45fd
10 changed files with 21 additions and 20 deletions
|
@ -710,7 +710,7 @@ class ModuleManager(object):
|
|||
def virtual_disk_exists(self):
|
||||
response = self.get_virtual_disk_on_device()
|
||||
if response:
|
||||
return True
|
||||
return True
|
||||
return False
|
||||
|
||||
def remove_virtual_disk_from_device(self):
|
||||
|
@ -743,7 +743,7 @@ class ModuleManager(object):
|
|||
try:
|
||||
response = resp.json()
|
||||
except ValueError as ex:
|
||||
raise F5ModuleError(str(ex))
|
||||
raise F5ModuleError(str(ex))
|
||||
|
||||
if resp.status == 404 or 'code' in response and response['code'] == 404:
|
||||
return True
|
||||
|
@ -767,7 +767,7 @@ class ModuleManager(object):
|
|||
try:
|
||||
response = resp.json()
|
||||
except ValueError:
|
||||
return False
|
||||
return False
|
||||
if 'code' in response and response['code'] == 400:
|
||||
if 'message' in response:
|
||||
raise F5ModuleError(response['message'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue