From 55f636675c8dbc59e9ffe3d2c2134ce2f5cfe43b Mon Sep 17 00:00:00 2001 From: Daniel Jaouen Date: Wed, 19 Feb 2014 18:57:36 -0500 Subject: [PATCH] homebrew_cask: return False instead of True when nothing to list. --- library/packaging/homebrew_cask | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/homebrew_cask b/library/packaging/homebrew_cask index 96fd5cfef1..ec9c47ecfb 100644 --- a/library/packaging/homebrew_cask +++ b/library/packaging/homebrew_cask @@ -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