lib/heirloom/cli/show.rb in heirloom-0.7.2rc2 vs lib/heirloom/cli/show.rb in heirloom-0.7.2

- old
+ new

@@ -14,10 +14,12 @@ :required => [:name], :config => @config ensure_valid_region :region => @opts[:metadata_region], :config => @config ensure_domain_exists :name => @opts[:name], :config => @config - id = @opts[:id] ? @opts[:id] : latest_id + + id = @opts.fetch(:id) { latest_id } + @archive = Archive.new :name => @opts[:name], :config => @config, :id => id ensure_archive_exists :archive => @archive, :config => @config