Skip to content

Commit

Permalink
chore: remove warning when arn not parsed
Browse files Browse the repository at this point in the history
The reason for removing the warning is, that not always a RoleArn may be present in the
ECS response, and hence having a warning in such scenario, every time credentials are retrieved, can
be annoying.
  • Loading branch information
yenfryherrerafeliz committed Jan 14, 2025
1 parent e4733ea commit 9d52479
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Credentials/EcsCredentialProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ public function __invoke()
$result['AccountId'] = $parsedArn->getAccountId();
} catch (\Exception $e) {
// AccountId will be null
trigger_error(
"An error occured while parsing the ARN string: " . $e->getMessage(),
E_USER_WARNING
);
}
}

Expand Down

0 comments on commit 9d52479

Please sign in to comment.