summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sedlacek <dansedlacek@fb.com>2016-03-24 16:21:55 -0700
committerDan Sedlacek <dansedlacek@fb.com>2016-03-28 17:29:34 -0700
commit0257706dbe0b28c98fce53f508afd50692df0bd9 (patch)
tree9004d6a93e3b3bad2e8f81ff42c49d6a87477849
parentb1a0d6cb61504a0f076f349f08c2f21573c4089f (diff)
downloadchef-0257706dbe0b28c98fce53f508afd50692df0bd9.tar.gz
Let's just be more paranoid
-rw-r--r--lib/chef/provider/package/chocolatey.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/chocolatey.rb b/lib/chef/provider/package/chocolatey.rb
index cf0220b708..c47e112d6a 100644
--- a/lib/chef/provider/package/chocolatey.rb
+++ b/lib/chef/provider/package/chocolatey.rb
@@ -256,7 +256,7 @@ EOS
def parse_list_output(*args)
list = []
choco_command(*args).stdout.each_line do |line|
- next if line.start_with?('Chocolatey')
+ next if line.start_with?('Chocolatey v')
name, version = line.split("|")
list << [ name.downcase, version.chomp ]
end