mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fixes pylint errors (#23279)
Reported by gundalow, this fixes pylint errors in F5 modules
This commit is contained in:
@@ -320,7 +320,7 @@ class BigIpGtmDatacenter(object):
|
|||||||
enabled = self.params['enabled']
|
enabled = self.params['enabled']
|
||||||
|
|
||||||
if state is None and enabled is None:
|
if state is None and enabled is None:
|
||||||
module.fail_json(msg="Neither 'state' nor 'enabled' set")
|
raise F5ModuleError("Neither 'state' nor 'enabled' set")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if state == "present":
|
if state == "present":
|
||||||
|
|||||||
@@ -476,12 +476,6 @@ class BigIpRouteDomain(object):
|
|||||||
result = dict()
|
result = dict()
|
||||||
state = self.params['state']
|
state = self.params['state']
|
||||||
|
|
||||||
if self.params['check_mode']:
|
|
||||||
if value == current:
|
|
||||||
changed = False
|
|
||||||
else:
|
|
||||||
changed = True
|
|
||||||
else:
|
|
||||||
if state == "present":
|
if state == "present":
|
||||||
changed = self.present()
|
changed = self.present()
|
||||||
current = self.read()
|
current = self.read()
|
||||||
|
|||||||
@@ -444,6 +444,8 @@ class BigIpSslCertificate(object):
|
|||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
changed = False
|
changed = False
|
||||||
|
name = self.params['name']
|
||||||
|
partition = self.params['partition']
|
||||||
|
|
||||||
check_mode = self.params['check_mode']
|
check_mode = self.params['check_mode']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user