use profile_name in credential options
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 8m6s

This commit is contained in:
Emil Lerch 2026-02-02 16:13:09 -08:00
parent 742a820eeb
commit 686b18d1f4
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -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});