diff --git a/lib/ansible/module_utils/network/f5/common.py b/lib/ansible/module_utils/network/f5/common.py index 4fa75fc01f8..7320d592533 100644 --- a/lib/ansible/module_utils/network/f5/common.py +++ b/lib/ansible/module_utils/network/f5/common.py @@ -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.' ) diff --git a/lib/ansible/modules/network/f5/bigip_vcmp_guest.py b/lib/ansible/modules/network/f5/bigip_vcmp_guest.py index 3193201a8e8..ba73f43f7f1 100644 --- a/lib/ansible/modules/network/f5/bigip_vcmp_guest.py +++ b/lib/ansible/modules/network/f5/bigip_vcmp_guest.py @@ -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: