Sha256: f7742168a4314a616e151d092123a809b27de43ac08a1d0218064f4e258c6759
Contents?: true
Size: 772 Bytes
Versions: 51
Compression:
Stored size: 772 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
51 entries across 51 versions & 3 rubygems