Bug 1076737 - Correct New Relic deployment URL and attribute name

The current values were copied from another project's deploy script, but
they are not working - so let's use what the latest New Relic docs say
we should use.
This commit is contained in:
Ed Morley 2015-04-20 15:08:18 +01:00
Родитель 45cee6856e
Коммит 96470f8d19
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -116,11 +116,11 @@ def ping_newrelic(ctx):
print 'Post deployment to New Relic'
data = urllib.urlencode({
'deployment[revision]': settings.UPDATE_REF,
'deployment[app_id]': settings.NEW_RELIC_APP_ID
'deployment[application_id]': settings.NEW_RELIC_APP_ID
})
headers = {'x-api-key': settings.NEW_RELIC_API_KEY}
try:
request = urllib2.Request('https://rpm.newrelic.com/deployments.xml',
request = urllib2.Request('https://api.newrelic.com/deployments.xml',
data, headers)
urllib2.urlopen(request)
except urllib2.URLError as exp: