mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-22 21:38:24 +00:00
Fixed refactoring mistakes about loading IAM credentials
This commit is contained in:
parent
b679e1db98
commit
84dcf34e2c
@ -452,6 +452,11 @@ bool S3fsCred::LoadIAMCredentials()
|
||||
S3FS_PRN_ERR("Something error occurred, could not set IAM credentials.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!SetIAMCredentials(cred.c_str())){
|
||||
S3FS_PRN_ERR("Something error occurred, could not set IAM role name.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -497,8 +502,6 @@ bool S3fsCred::LoadIAMRoleFromMetaData()
|
||||
|
||||
bool S3fsCred::SetIAMCredentials(const char* response)
|
||||
{
|
||||
const std::lock_guard<std::mutex> lock(token_lock);
|
||||
|
||||
S3FS_PRN_INFO3("IAM credential response = \"%s\"", response);
|
||||
|
||||
iamcredmap_t keyval;
|
||||
|
@ -152,7 +152,7 @@ class S3fsCred
|
||||
|
||||
bool GetIAMCredentialsURL(std::string& url, bool check_iam_role) REQUIRES(S3fsCred::token_lock);
|
||||
bool LoadIAMCredentials() REQUIRES(S3fsCred::token_lock);
|
||||
bool SetIAMCredentials(const char* response);
|
||||
bool SetIAMCredentials(const char* response) REQUIRES(S3fsCred::token_lock);
|
||||
bool SetIAMRoleFromMetaData(const char* response);
|
||||
|
||||
bool SetExtCredLib(const char* arg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user