Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
resource-agents.11694
0030-dev-azure-events-Add-custom-user-agent.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0030-dev-azure-events-Add-custom-user-agent.patch of Package resource-agents.11694
From ca15b9dcf01fccd96c5434109028b9183db85a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se> Date: Thu, 18 Oct 2018 09:23:33 +0200 Subject: [PATCH] dev: azure-events: Add custom user agent --- heartbeat/azure-events.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heartbeat/azure-events.in b/heartbeat/azure-events.in index 1182e09a..3c4fe5e1 100644 --- a/heartbeat/azure-events.in +++ b/heartbeat/azure-events.in @@ -24,7 +24,9 @@ import ocf ############################################################################## + VERSION = "0.10" +USER_AGENT = "Pacemaker-ResourceAgent/%s %s" % (VERSION, ocf.distro()) attr_globalPullState = "azure-events_globalPullState" attr_lastDocVersion = "azure-events_lastDocVersion" @@ -79,6 +81,7 @@ class azHelper: req = urllib2.Request(url, postData) req.add_header("Metadata", "true") + req.add_header("User-Agent", USER_AGENT) resp = urllib2.urlopen(req) data = resp.read() ocf.logger.debug("_sendMetadataRequest: response = %s" % data) -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor