1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-25 13:12:46 +00:00

Return correct values when running yarn in check mode (#153)

* Fixes Check Mode

* Adds parenthesis

* Adds changelog and tests
This commit is contained in:
Jose Angel Munoz 2020-06-17 17:39:24 +02:00 committed by GitHub
parent 02a032aa45
commit 54014529bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View file

@ -218,7 +218,7 @@ class Yarn(object):
rc, out, err = self.module.run_command(cmd, check_rc=check_rc, cwd=cwd)
return out, err
return ''
return(None, None)
def list(self):
cmd = ['list', '--depth=0', '--json']