summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/module_utils/network/vyos/config/ospfv2/ospfv2.py1
-rw-r--r--plugins/module_utils/network/vyos/facts/ospfv2/ospfv2.py1
-rw-r--r--plugins/module_utils/network/vyos/facts/ospfv3/ospfv3.py4
3 files changed, 1 insertions, 5 deletions
diff --git a/plugins/module_utils/network/vyos/config/ospfv2/ospfv2.py b/plugins/module_utils/network/vyos/config/ospfv2/ospfv2.py
index dedc2416..3f9e4e64 100644
--- a/plugins/module_utils/network/vyos/config/ospfv2/ospfv2.py
+++ b/plugins/module_utils/network/vyos/config/ospfv2/ospfv2.py
@@ -35,7 +35,6 @@ from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.utils.utils
class Ospfv2(ConfigBase):
-
"""
The vyos_ospfv2 class
"""
diff --git a/plugins/module_utils/network/vyos/facts/ospfv2/ospfv2.py b/plugins/module_utils/network/vyos/facts/ospfv2/ospfv2.py
index a5c46366..5121c980 100644
--- a/plugins/module_utils/network/vyos/facts/ospfv2/ospfv2.py
+++ b/plugins/module_utils/network/vyos/facts/ospfv2/ospfv2.py
@@ -24,7 +24,6 @@ from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.osp
class Ospfv2Facts(object):
-
"""The vyos ospfv2 fact class"""
def __init__(
diff --git a/plugins/module_utils/network/vyos/facts/ospfv3/ospfv3.py b/plugins/module_utils/network/vyos/facts/ospfv3/ospfv3.py
index 121a3485..d4b3e448 100644
--- a/plugins/module_utils/network/vyos/facts/ospfv3/ospfv3.py
+++ b/plugins/module_utils/network/vyos/facts/ospfv3/ospfv3.py
@@ -184,9 +184,7 @@ class Ospfv3Facts(object):
return (
"disable"
if attrib == "disabled"
- else "enable"
- if attrib == "enabled"
- else attrib.replace("_", "-")
+ else "enable" if attrib == "enabled" else attrib.replace("_", "-")
)
def is_bool(self, attrib):