From 686b18d1f4329e80cf6d9b916eaa0c231333edb9 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 2 Feb 2026 16:13:09 -0800 Subject: [PATCH] use profile_name in credential options --- src/aws_credentials.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aws_credentials.zig b/src/aws_credentials.zig index 11b620a..2e79e7c 100644 --- a/src/aws_credentials.zig +++ b/src/aws_credentials.zig @@ -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});