chef/cookbooks/keystone/providers/register.rb
def update_item(path, body, name)
  resp = session.patch(path, body)
  if resp.is_a?(Net::HTTPOK)
    Chef::Log.info("Updated keystone item '#{name}'")
  else
    raise_error(resp, "Unable to update item '#{name}'", "update_item")
  end
end
# Make a PATCH request to update an existing item
Make a PATCH request to update an existing item
Make a PATCH request to update an existing item
def update_item(path, body, name)
  resp = session.patch(path, body)
  if resp.is_a?(Net::HTTPOK)
    Chef::Log.info("Updated keystone item '#{name}'")
  else
    raise_error(resp, "Unable to update item '#{name}'", "update_item")
  end
end
def update_item ( path , body , name ) resp = session . patch ( path , body ) if resp . is_a? ( Net :: HTTPOK ) Chef :: Log . info ( "Updated keystone item '#{name}'" ) else raise_error ( resp , "Unable to update item '#{name}'" , "update_item" ) end end
Make a PATCH request to update an existing item
Make a PATCH request to update an existing item
path
body
name