f5: raise exception (#43409)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-07-30 09:40:42 +05:30 committed by Tim Rupp
parent cc3dadf16e
commit a44adc1dc9
2 changed files with 2 additions and 2 deletions

View file

@ -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.'
)

View file

@ -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: