Skip to content

Commit

Permalink
Merge pull request #80 from awslabs/TaskRoleCredentials
Browse files Browse the repository at this point in the history
Merge From TaskRoleCredentials Branch
  • Loading branch information
singku authored Apr 5, 2017
2 parents 8ee993d + 79acf4c commit 593a542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws-cpp-sdk-core/source/auth/AWSCredentialsProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static const char* TASK_ROLE_LOG_TAG = "TaskRoleCredentialsProvider";
TaskRoleCredentialsProvider::TaskRoleCredentialsProvider(const char* URI, long refreshRateMs) :
m_ecsCredentialsClient(Aws::MakeShared<Aws::Internal::ECSCredentialsClient>(TASK_ROLE_LOG_TAG, URI)),
m_loadFrequencyMs(refreshRateMs),
m_expirationDate(LONG_MAX),
m_expirationDate(DateTime::Now()),
m_credentials(Aws::Auth::AWSCredentials())
{
AWS_LOGSTREAM_INFO(TASK_ROLE_LOG_TAG, "Creating TaskRole with default ECSCredentialsClient and refresh rate " << refreshRateMs);
Expand All @@ -268,7 +268,7 @@ TaskRoleCredentialsProvider::TaskRoleCredentialsProvider(
const std::shared_ptr<Aws::Internal::ECSCredentialsClient>& client, long refreshRateMs) :
m_ecsCredentialsClient(client),
m_loadFrequencyMs(refreshRateMs),
m_expirationDate(LONG_MAX),
m_expirationDate(DateTime::Now()),
m_credentials(Aws::Auth::AWSCredentials())
{
AWS_LOGSTREAM_INFO(TASK_ROLE_LOG_TAG, "Creating TaskRole with default ECSCredentialsClient and refresh rate " << refreshRateMs);
Expand Down

0 comments on commit 593a542

Please sign in to comment.