f5: raise exception (#43409)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
cc3dadf16e
commit
a44adc1dc9
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue