homebrew_cask: return False instead of True when nothing to list.
This commit is contained in:
parent
c9b8877cc6
commit
fb526e1afb
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ class HomebrewCask(object):
|
|||
rc, out, err = self.module.run_command(cmd)
|
||||
|
||||
if 'nothing to list' in out:
|
||||
return True
|
||||
return False
|
||||
elif rc == 0:
|
||||
casks = [cask_.strip() for cask_ in out.split('\n') if cask_.strip()]
|
||||
return self.current_cask in casks
|
||||
|
|
Loading…
Reference in a new issue