lib/berkshelf/formatters/json.rb in berkshelf-3.0.0.beta2 vs lib/berkshelf/formatters/json.rb in berkshelf-3.0.0.beta3
- old
+ new
@@ -31,10 +31,10 @@
end
# @param [Berkshelf::Dependency] dependency
def fetch(dependency)
cookbooks[dependency] ||= {}
- cookbooks[dependency][:version] = dependency.cached_cookbook.version
+ cookbooks[dependency][:version] = dependency.locked_version.to_s
cookbooks[dependency][:location] = dependency.location
end
# Add a Cookbook installation entry to delayed output
#