lib/heirloom/cli/show.rb in heirloom-0.7.2 vs lib/heirloom/cli/show.rb in heirloom-0.7.3rc1
- old
+ new
@@ -15,10 +15,13 @@
:config => @config
ensure_valid_region :region => @opts[:metadata_region],
:config => @config
ensure_domain_exists :name => @opts[:name], :config => @config
- id = @opts.fetch(:id) { latest_id }
+ id = @opts.fetch(:id) do
+ latest_id :name => @opts[:name],
+ :config => @config
+ end
@archive = Archive.new :name => @opts[:name],
:config => @config,
:id => id
ensure_archive_exists :archive => @archive,