Sha256: 842e03c387645b42a7251857c65387e985144a3312464c1bc246da869d4f44bd
Contents?: true
Size: 771 Bytes
Versions: 40
Compression:
Stored size: 771 Bytes
Contents
module Fog module Network class OpenStack class Real def delete_lb_health_monitor(health_monitor_id) request( :expects => 204, :method => 'DELETE', :path => "lb/health_monitors/#{health_monitor_id}" ) end end class Mock def delete_lb_health_monitor(health_monitor_id) response = Excon::Response.new if list_lb_health_monitors.body['health_monitors'].map { |r| r['id'] }.include? health_monitor_id self.data[:lb_health_monitors].delete(health_monitor_id) response.status = 204 response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
40 entries across 40 versions & 5 rubygems