lib/epom/zone.rb in epom-0.9 vs lib/epom/zone.rb in epom-0.9.1

- old
+ new

@@ -9,11 +9,11 @@ :url => '/rest-api/zones/ZONE_ID/delete.do', :url_parameters => [:zoneId], :body_parameters => [:hash, :timestamp, :username], :method => :post }, - :get_zone_placement => { + :get_zone_placements => { :url => '/rest-api/zones/ZONE_ID/placements.do', :url_parameters => [:zoneId], :body_parameters => [:hash, :timestamp, :username], :method => :get }, @@ -29,10 +29,10 @@ } } end def self.replace_params_in_url(url, url_params) - url.gsub!('ZONE_ID', url_params[:zoneId]) if url.include?('ZONE_ID') + url.gsub!('ZONE_ID', url_params[:zoneId].to_s) if url.include?('ZONE_ID') url end end end \ No newline at end of file