From a44adc1dc9d9fac0e2831e5524d106aabb04aa29 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasurde@redhat.com>
Date: Mon, 30 Jul 2018 09:40:42 +0530
Subject: [PATCH] f5: raise exception (#43409)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---
 lib/ansible/module_utils/network/f5/common.py      | 2 +-
 lib/ansible/modules/network/f5/bigip_vcmp_guest.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ansible/module_utils/network/f5/common.py b/lib/ansible/module_utils/network/f5/common.py
index 4fa75fc01f..7320d59253 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 3193201a8e..ba73f43f7f 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: