mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 16:34:02 -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
|
@ -161,9 +161,9 @@ def get_package_state(names, pkg_spec, module):
|
|||
# find multiple packages with that name.
|
||||
pkg_spec[name]['installed_names'] = [installed_name for installed_name in stdout.splitlines()]
|
||||
module.debug("get_package_state(): installed_names = %s" % pkg_spec[name]['installed_names'])
|
||||
pkg_spec[name]['installed_state'] = True;
|
||||
pkg_spec[name]['installed_state'] = True
|
||||
else:
|
||||
pkg_spec[name]['installed_state'] = False;
|
||||
pkg_spec[name]['installed_state'] = False
|
||||
|
||||
# Function used to make sure a package is present.
|
||||
def package_present(names, pkg_spec, module):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue