From a58e5a0efc0ca955b34aa32eb89bc6710aa75e7f Mon Sep 17 00:00:00 2001 From: tedder Date: Tue, 19 May 2015 10:30:18 -0700 Subject: [PATCH 1/3] fix 404'd url. There's no perfect replacement, but this is okay. --- monitoring/newrelic_deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/newrelic_deployment.py b/monitoring/newrelic_deployment.py index 93d55832fd3..de6d73c30ad 100644 --- a/monitoring/newrelic_deployment.py +++ b/monitoring/newrelic_deployment.py @@ -25,7 +25,7 @@ version_added: "1.2" author: Matt Coddington short_description: Notify newrelic about app deployments description: - - Notify newrelic about app deployments (see http://newrelic.github.io/newrelic_api/NewRelicApi/Deployment.html) + - Notify newrelic about app deployments (see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/deployment-notifications#api) options: token: description: From 4cc8c6b340dc260f32251bb4c2e20cc3af6579eb Mon Sep 17 00:00:00 2001 From: tedder Date: Tue, 19 May 2015 10:31:01 -0700 Subject: [PATCH 2/3] they call it a key, not a token --- monitoring/newrelic_deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/newrelic_deployment.py b/monitoring/newrelic_deployment.py index de6d73c30ad..326e7a0ca75 100644 --- a/monitoring/newrelic_deployment.py +++ b/monitoring/newrelic_deployment.py @@ -29,7 +29,7 @@ description: options: token: description: - - API token. + - API token, to place in the x-api-key header. required: true app_name: description: From c9e02dd7d83ee165370ba6b9d9ff55556677c35f Mon Sep 17 00:00:00 2001 From: tedder Date: Tue, 19 May 2015 10:59:49 -0700 Subject: [PATCH 3/3] use newer required_one_of syntax; unsure why there's app_name vs appname, so leaving it alone. --- monitoring/newrelic_deployment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monitoring/newrelic_deployment.py b/monitoring/newrelic_deployment.py index 326e7a0ca75..87658e333c7 100644 --- a/monitoring/newrelic_deployment.py +++ b/monitoring/newrelic_deployment.py @@ -102,6 +102,7 @@ def main(): environment=dict(required=False), validate_certs = dict(default='yes', type='bool'), ), + required_one_of=[['app_name', 'application_id']], supports_check_mode=True )