use profile_name in credential options
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 8m6s
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 8m6s
This commit is contained in:
parent
742a820eeb
commit
686b18d1f4
1 changed files with 1 additions and 1 deletions
|
|
@ -408,7 +408,7 @@ fn getProfileCredentials(allocator: std.mem.Allocator, options: Profile) !?auth.
|
|||
|
||||
// Get active profile
|
||||
const profile = (try getEnvironmentVariable(allocator, "AWS_PROFILE")) orelse
|
||||
try allocator.dupe(u8, "default");
|
||||
try allocator.dupe(u8, options.profile_name orelse "default");
|
||||
defer allocator.free(profile);
|
||||
log.debug("Looking for file credentials using profile '{s}'", .{profile});
|
||||
log.debug("Checking credentials file: {s}", .{creds_file_path.evaluated_path});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue