Chapter 09/circuit-oneops-1-master/components/cookbooks/fqdn/recipes/get_infoblox_connection.rb
# Fail fast if it can't connect to infoblox. This is useful if
# we have supplied the wrong credentials in cloud.
Fail fast if it can't connect to infoblox. This is useful if
we have supplied the wrong credentials in cloud.
Fail fast if it can ' t connect to infoblox . This is useful if we have supplied the wrong credentials in cloud .
def checkCxn(conn)
  res =  conn.request(:method=>:get,:path=>"/wapi/v1.0/network")
  if(res.status != 200)
    raise res.body
  end
end
def checkCxn ( conn ) res = conn . request ( :method => :get , :path => "/wapi/v1.0/network" ) if ( res . status != 200 ) raise res . body end end
Fail fast if it can't connect to infoblox.
Fail fast if it can ' t connect to infoblox .
conn
<not_specific>