f5: raise exception (#43409)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/41115/merge
Abhijeet Kasurde 6 years ago 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:

Loading…
Cancel
Save