We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3498dce commit 77cb41cCopy full SHA for 77cb41c
src/aws-cpp-sdk-core/source/client/ClientConfiguration.cpp
@@ -308,12 +308,12 @@ void setConfigFromEnvOrProfile(ClientConfiguration &config)
308
"1" /* default value */);
309
310
// Parse and set IMDS num attempts
311
- long attempts = std::stol(numAttemptsStr);
+ long attempts = std::stol(numAttemptsStr.c_str());
312
if (attempts >= 1) {
313
config.imdsConfig.metadata_service_num_attempts = attempts;
314
}
315
// Parse and set IMDS timeout
316
- long timeout = std::stol(timeoutStr);
+ long timeout = std::stol(timeoutStr.c_str());
317
if (timeout >= 1) {
318
config.imdsConfig.metadata_service_timeout = timeout;
319
0 commit comments