diff --git a/lib/chef_diff/changes/cookbook.rb b/lib/chef_diff/changes/cookbook.rb index e3210b1..0111011 100644 --- a/lib/chef_diff/changes/cookbook.rb +++ b/lib/chef_diff/changes/cookbook.rb @@ -62,7 +62,7 @@ def initialize(files, cookbook_dirs) # and will be re-uploaded if files .select { |x| x[:status] == :deleted } - .map { |x| x[:path].match(%{.*metadata\.rb$}) } + .map { |x| x[:path].match(%{.*metadata\.(rb|json)$}) } .compact .any? @status = :deleted