Skip to content

Commit fe53cc7

Browse files
committed
Fix merge
1 parent 0f744d3 commit fe53cc7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ namespace Aws
437437
/// In ClickHouse we load EC2 metadata by ourselves - see DB::S3::ClientFactory::create() in src/IO/S3Common.cpp.
438438
/// We have to do that because we need PocoHTTPClientConfiguration (not just Aws::Client::ClientConfiguration) to download things in ClickHouse.
439439
/// Here we just disable loading EC2 metadata by aws-sdk-core.
440-
#if 0
440+
#if 0
441441
if (s_ec2metadataClient)
442442
{
443443
return;
@@ -475,30 +475,35 @@ namespace Aws
475475
}
476476
}
477477
return ec2MetadataServiceEndpoint;
478+
#endif
479+
return "";
478480
}
479481

480482

481483
void InitEC2MetadataClient(const Aws::Client::ClientConfiguration::CredentialProviderConfiguration& credentialConfig)
482484
{
485+
#if 0
483486
if (s_ec2metadataClient)
484487
{
485488
return;
486489
}
487490
Aws::String ec2MetadataServiceEndpoint = CalculateEC2MetadataServiceEndpoint();
488491
AWS_LOGSTREAM_INFO(EC2_METADATA_CLIENT_LOG_TAG, "Using IMDS endpoint: " << ec2MetadataServiceEndpoint);
489492
s_ec2metadataClient = Aws::MakeShared<EC2MetadataClient>(EC2_METADATA_CLIENT_LOG_TAG, credentialConfig, ec2MetadataServiceEndpoint.c_str());
493+
#endif
490494
}
491495

492496
void InitEC2MetadataClient()
493497
{
498+
#if 0
494499
if (s_ec2metadataClient)
495500
{
496501
return;
497502
}
498503
Aws::String ec2MetadataServiceEndpoint = CalculateEC2MetadataServiceEndpoint();
499504
AWS_LOGSTREAM_INFO(EC2_METADATA_CLIENT_LOG_TAG, "Using IMDS endpoint: " << ec2MetadataServiceEndpoint);
500505
s_ec2metadataClient = Aws::MakeShared<EC2MetadataClient>(EC2_METADATA_CLIENT_LOG_TAG, ec2MetadataServiceEndpoint.c_str());
501-
#endif
506+
#endif
502507
}
503508

504509
#ifdef _MSC_VER

0 commit comments

Comments
 (0)