We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5803b1d commit b6c4417Copy full SHA for b6c4417
1 file changed
source/lib/restacker_config.rb
@@ -51,10 +51,7 @@ def self.configure(location)
51
52
def self.latest_amis(rhel=nil)
53
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
+ return latest_amis[rhel] || latest_amis
58
end
59
60
def self.target_config(config)
@@ -106,7 +103,7 @@ def self.find_config
106
103
config
107
104
108
105
109
- def self.bucket(options)
+ def self.bucket
110
find_config[:ctrl][:bucket][:name]
111
112
0 commit comments