Skip to content

Commit 2a3718e

Browse files
saketu-awsdljvette
authored andcommitted
[Bug Fix] Remove logging statements in install and update scripts inside IMDSv2 class
Prior to this change, the logging statements inside the IMDSv2 class were being nil for some reason, which caused the install and update scripts to fall back to pulling the agent from the us-east-1 default region, which is not the expected behavior. This change removes those log statements so we don't hit that error. * Unit Tests : [Y] * Integration Tests : Manually spun up an instance, caused the IMDSv2 call to fail by changing the endpoint for the token, and the install script worked as expected.
1 parent 44c805e commit 2a3718e

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

bin/install

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class IMDSV2
8383
token = put_request(TOKEN_PATH)
8484
JSON.parse(get_request(DOCUMENT_PATH, token).strip)
8585
rescue
86-
@log.info("IMDSv2 http request failed, falling back to IMDSv1.")
8786
JSON.parse(get_request(DOCUMENT_PATH).strip)
8887
end
8988
end

bin/update

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class IMDSV2
8484
token = put_request(TOKEN_PATH)
8585
JSON.parse(get_request(DOCUMENT_PATH, token).strip)
8686
rescue
87-
@log.info("IMDSv2 http request failed, falling back to IMDSv1.")
8887
JSON.parse(get_request(DOCUMENT_PATH).strip)
8988
end
9089
end

0 commit comments

Comments
 (0)