Skip to content

Commit 662f925

Browse files
chore: improve error message on SI creation (#1120)
1 parent 0fcfdbc commit 662f925

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

recipes/newrelic/infrastructure/super-agent/debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ install:
565565
566566
ERROR_MESSAGE=$(/usr/local/bin/newrelic utils jq '.errors[0].message // "NOERROR"' < "$TEMPORAL_FOLDER/response.json" | tr -d '"')
567567
if [ "$ERROR_MESSAGE" != "NOERROR" ]; then
568-
echo "Error creating an identity: $ERROR_MESSAGE"
568+
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"
569569
exit 100
570570
fi
571571

recipes/newrelic/infrastructure/super-agent/rhel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ install:
508508
509509
ERROR_MESSAGE=$(/usr/local/bin/newrelic utils jq '.errors[0].message // "NOERROR"' < "$TEMPORAL_FOLDER/response.json" | tr -d '"')
510510
if [ "$ERROR_MESSAGE" != "NOERROR" ]; then
511-
echo "Error creating an identity: $ERROR_MESSAGE"
511+
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"
512512
exit 100
513513
fi
514514

recipes/newrelic/infrastructure/super-agent/suse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ install:
455455
456456
ERROR_MESSAGE=$(/usr/local/bin/newrelic utils jq '.errors[0].message // "NOERROR"' < "$TEMPORAL_FOLDER/response.json" | tr -d '"')
457457
if [ "$ERROR_MESSAGE" != "NOERROR" ]; then
458-
echo "Error creating an identity: $ERROR_MESSAGE"
458+
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"
459459
exit 100
460460
fi
461461

0 commit comments

Comments
 (0)