Skip to content

Commit ff322ba

Browse files
committed
removed m_disableIMDSV1 and comment
1 parent 6a1e807 commit ff322ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ namespace Aws
198198
const char *endpoint) :
199199
AWSHttpResourceClient(clientConfiguration, EC2_METADATA_CLIENT_LOG_TAG),
200200
m_endpoint(endpoint),
201-
// add disable imds to below
202201
m_disableIMDS(clientConfiguration.disableIMDS),
203202
m_tokenRequired(true),
204203
m_disableIMDSV1(clientConfiguration.disableImdsV1)
@@ -225,8 +224,7 @@ namespace Aws
225224
EC2_METADATA_CLIENT_LOG_TAG),
226225
m_endpoint(endpoint),
227226
m_disableIMDS(false),
228-
m_tokenRequired(true),
229-
m_disableIMDSV1(false) {
227+
m_tokenRequired(true) {
230228
#if defined(DISABLE_IMDSV1)
231229
m_disableIMDSV1 = true;
232230
AWS_LOGSTREAM_TRACE(m_logtag.c_str(), "IMDSv1 had been disabled at the SDK build time");

0 commit comments

Comments
 (0)