mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 06:49:10 -07:00
[fix] pylint errors on modules packaging language (#30748)
* cleaning pylint errors for module packaging/language/*
This commit is contained in:
parent
e767c7d694
commit
cddff32792
7 changed files with 39 additions and 38 deletions
|
@ -264,16 +264,16 @@ def main():
|
|||
changed = False
|
||||
if state == 'present':
|
||||
installed, missing = npm.list()
|
||||
if len(missing):
|
||||
if missing:
|
||||
changed = True
|
||||
npm.install()
|
||||
elif state == 'latest':
|
||||
installed, missing = npm.list()
|
||||
outdated = npm.list_outdated()
|
||||
if len(missing):
|
||||
if missing:
|
||||
changed = True
|
||||
npm.install()
|
||||
if len(outdated):
|
||||
if outdated:
|
||||
changed = True
|
||||
npm.update()
|
||||
else: # absent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue