From 662f925cf1b388c83955855dab31645f0b876885 Mon Sep 17 00:00:00 2001 From: Guillermo Sanchez Gavier Date: Wed, 25 Sep 2024 17:31:19 +0200 Subject: [PATCH] chore: improve error message on SI creation (#1120) --- recipes/newrelic/infrastructure/super-agent/debian.yml | 2 +- recipes/newrelic/infrastructure/super-agent/rhel.yml | 2 +- recipes/newrelic/infrastructure/super-agent/suse.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/newrelic/infrastructure/super-agent/debian.yml b/recipes/newrelic/infrastructure/super-agent/debian.yml index 05116d11..f2726d8c 100644 --- a/recipes/newrelic/infrastructure/super-agent/debian.yml +++ b/recipes/newrelic/infrastructure/super-agent/debian.yml @@ -565,7 +565,7 @@ install: ERROR_MESSAGE=$(/usr/local/bin/newrelic utils jq '.errors[0].message // "NOERROR"' < "$TEMPORAL_FOLDER/response.json" | tr -d '"') if [ "$ERROR_MESSAGE" != "NOERROR" ]; then - echo "Error creating an identity: $ERROR_MESSAGE" + echo "Failed to create a New Relic System Identity for Fleet Control communication authentication. Please verify that your User Key is valid and that your Account Organization has the necessary permissions to create a System Identity: $ERROR_MESSAGE" exit 100 fi diff --git a/recipes/newrelic/infrastructure/super-agent/rhel.yml b/recipes/newrelic/infrastructure/super-agent/rhel.yml index e1be0ee9..bdc21500 100644 --- a/recipes/newrelic/infrastructure/super-agent/rhel.yml +++ b/recipes/newrelic/infrastructure/super-agent/rhel.yml @@ -508,7 +508,7 @@ install: ERROR_MESSAGE=$(/usr/local/bin/newrelic utils jq '.errors[0].message // "NOERROR"' < "$TEMPORAL_FOLDER/response.json" | tr -d '"') if [ "$ERROR_MESSAGE" != "NOERROR" ]; then - echo "Error creating an identity: $ERROR_MESSAGE" + echo "Failed to create a New Relic System Identity for Fleet Control communication authentication. Please verify that your User Key is valid and that your Account Organization has the necessary permissions to create a System Identity: $ERROR_MESSAGE" exit 100 fi diff --git a/recipes/newrelic/infrastructure/super-agent/suse.yml b/recipes/newrelic/infrastructure/super-agent/suse.yml index 4dc835ec..e3d2fe1d 100644 --- a/recipes/newrelic/infrastructure/super-agent/suse.yml +++ b/recipes/newrelic/infrastructure/super-agent/suse.yml @@ -455,7 +455,7 @@ install: ERROR_MESSAGE=$(/usr/local/bin/newrelic utils jq '.errors[0].message // "NOERROR"' < "$TEMPORAL_FOLDER/response.json" | tr -d '"') if [ "$ERROR_MESSAGE" != "NOERROR" ]; then - echo "Error creating an identity: $ERROR_MESSAGE" + echo "Failed to create a New Relic System Identity for Fleet Control communication authentication. Please verify that your User Key is valid and that your Account Organization has the necessary permissions to create a System Identity: $ERROR_MESSAGE" exit 100 fi