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
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']