mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
PEP 8 cleanup. (#20789)
* PEP 8 E703 cleanup. * PEP 8 E701 cleanup. * PEP 8 E711 cleanup. * PEP 8 W191 and E101 cleanup.
This commit is contained in:
parent
c29d1e3162
commit
d0d1158c5e
72 changed files with 184 additions and 174 deletions
|
@ -374,7 +374,7 @@ def main():
|
|||
if HAS_BEAUTIFULSOUP is False:
|
||||
module.fail_json(msg="python module 'BeautifulSoup' is required!")
|
||||
|
||||
if module.params['state'] != None:
|
||||
if module.params['state'] is not None:
|
||||
states = module.params['state'].split(',')
|
||||
if (len(states) > 1) and (("present" in states) or ("enabled" in states)):
|
||||
module.fail_json(msg="state present/enabled is mutually exclusive with other states!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue