f5: raise exception (#43409)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/41115/merge
Abhijeet Kasurde 7 years ago committed by Tim Rupp
parent cc3dadf16e
commit a44adc1dc9

@ -302,7 +302,7 @@ def transform_name(partition='', name='', sub_path=''):
partition = '~' + partition partition = '~' + partition
else: else:
if sub_path: if sub_path:
F5ModuleError( raise F5ModuleError(
'When giving the subPath component include partition as well.' 'When giving the subPath component include partition as well.'
) )

@ -287,7 +287,7 @@ class Parameters(AnsibleF5Parameters):
elif len(parts) < 2: elif len(parts) < 2:
result = Destination(ip=parts[0], subnet=None) result = Destination(ip=parts[0], subnet=None)
else: else:
F5ModuleError( raise F5ModuleError(
"The provided mgmt_address is malformed." "The provided mgmt_address is malformed."
) )
except ValueError: except ValueError:

Loading…
Cancel
Save