Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes pylint errors #23279

Merged
merged 1 commit into from
Apr 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ansible/modules/network/f5/bigip_gtm_datacenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def flush(self):
enabled = self.params['enabled']

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:
if state == "present":
Expand Down
18 changes: 6 additions & 12 deletions lib/ansible/modules/network/f5/bigip_routedomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,18 +476,12 @@ def flush(self):
result = dict()
state = self.params['state']

if self.params['check_mode']:
if value == current:
changed = False
else:
changed = True
else:
if state == "present":
changed = self.present()
current = self.read()
result.update(current)
elif state == "absent":
changed = self.absent()
if state == "present":
changed = self.present()
current = self.read()
result.update(current)
elif state == "absent":
changed = self.absent()

result.update(dict(changed=changed))
return result
Expand Down
2 changes: 2 additions & 0 deletions lib/ansible/modules/network/f5/bigip_ssl_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ def absent(self):

def delete(self):
changed = False
name = self.params['name']
partition = self.params['partition']

check_mode = self.params['check_mode']

Expand Down