lib/terraspace_bundler/lockfile/yamler.rb in terraspace-bundler-0.2.0 vs lib/terraspace_bundler/lockfile/yamler.rb in terraspace-bundler-0.3.0

- old
+ new

@@ -17,10 +17,10 @@ end def item(mod) props = mod.props.dup # passthrough: name, url, version, ref, tag, branch etc props.delete(:name) # different structure in Terrafile.lock YAML - props[:sha] = mod.sha + props[:sha] ||= mod.latest_sha props.delete_if { |k,v| v.nil? } { mod.name => props } end def write