# File lib/deltacloud/drivers/rhevm/rhevm_client.rb, line 38
    def vm_action(id, action, headers={})
      headers.merge!(auth_header)
      headers.merge!({
        :content_type => 'application/xml',
        :accept => 'application/xml',
      })
      if action==:delete
        RHEVM::client(@api_entrypoint)["/vms/%s" % id].delete(headers)
      else
        xml_response = Client::parse_response(RHEVM::client(@api_entrypoint)["/vms/%s/%s" % [id, action]].post('<action/>', headers))
        return false if (xml_response/'action/status').first.text!="COMPLETE"
      end
      return true
    end