Skip to content

Commit b6c4417

Browse files
author
Peter Benjamin
committed
Fix bucket bug
1 parent 5803b1d commit b6c4417

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

source/lib/restacker_config.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ def self.configure(location)
5151

5252
def self.latest_amis(rhel=nil)
5353
latest_amis = YAML.load(get_object(find_config[:ctrl][:bucket][:ami_key]))
54-
if rhel
55-
return latest_amis[rhel]
56-
end
57-
latest_amis
54+
return latest_amis[rhel] || latest_amis
5855
end
5956

6057
def self.target_config(config)
@@ -106,7 +103,7 @@ def self.find_config
106103
config
107104
end
108105

109-
def self.bucket(options)
106+
def self.bucket
110107
find_config[:ctrl][:bucket][:name]
111108
end
112109

0 commit comments

Comments
 (0)