mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
f5: raise exception (#43409)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
Tim Rupp
parent
cc3dadf16e
commit
a44adc1dc9
@@ -302,7 +302,7 @@ def transform_name(partition='', name='', sub_path=''):
|
||||
partition = '~' + partition
|
||||
else:
|
||||
if sub_path:
|
||||
F5ModuleError(
|
||||
raise F5ModuleError(
|
||||
'When giving the subPath component include partition as well.'
|
||||
)
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ class Parameters(AnsibleF5Parameters):
|
||||
elif len(parts) < 2:
|
||||
result = Destination(ip=parts[0], subnet=None)
|
||||
else:
|
||||
F5ModuleError(
|
||||
raise F5ModuleError(
|
||||
"The provided mgmt_address is malformed."
|
||||
)
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user