mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Enable additional pylint rules and resolve issues found. (#47221)
* Resolve unneeded-not. * Resolve global-at-module-level. * Resolve useless-import-alias. * Resolve bad-whitespace. * Resolve global-variable-not-assigned. * Resolve logging-not-lazy. * Resolve comparison-with-itself.
This commit is contained in:
parent
77d32b8f57
commit
37b013aca3
29 changed files with 42 additions and 53 deletions
|
@ -363,7 +363,7 @@ def main():
|
|||
# The server could be in a changeing or error state.
|
||||
# Wait for one of the allowed states before doing anything.
|
||||
# If an allowed state can't be reached, this module fails.
|
||||
if not server.info['state'] in ALLOWED_STATES:
|
||||
if server.info['state'] not in ALLOWED_STATES:
|
||||
server.wait_for_state(ALLOWED_STATES)
|
||||
current_state = server.info['state']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue