Sha256: b62c4ed1f8e60a726fc9f0f18585761c74e85b93e870484df0fcc5c3941eb753
Contents?: true
Size: 766 Bytes
Versions: 22
Compression:
Stored size: 766 Bytes
Contents
module Fog module OpenStack class Network 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 data[:lb_health_monitors].delete(health_monitor_id) response.status = 204 response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems