lib/discotheque/metadata.rb in discotheque-0.0.1 vs lib/discotheque/metadata.rb in discotheque-0.0.2
- old
+ new
@@ -12,10 +12,10 @@
else
base_url = "http://169.254.169.254/latest/meta-data/"
begin
%w[instance-id ami-id security-groups availability-zone].each do |datum|
datum == "availability-zone" ? url="#{base_url}/placement/#{datum}" : url="#{base_url}#{datum}"
- d = HTTParty.get("#{url}").parsed_response
+ d = ::HTTParty.get("#{url}").parsed_response
if datum == "security-groups"
instance_variable_set "@group_name", d
elsif datum == "ami-id"
instance_variable_set "@image_id", d
else