-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3039636
commit 070380c
Showing
6 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 4d6f75aaffcf88cb5f1fc71fb3e1f3bab1c81774 Mon Sep 17 00:00:00 2001 | ||
From: "vincent.baer" <vincent.baer@outscale.com> | ||
Date: Mon, 17 Jul 2023 13:05:59 +0000 | ||
Subject: [PATCH] Add init profile in context | ||
|
||
--- | ||
v2/config_env.go | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/v2/config_env.go b/v2/config_env.go | ||
index 03e98e47..50019490 100644 | ||
--- a/v2/config_env.go | ||
+++ b/v2/config_env.go | ||
@@ -58,7 +58,8 @@ func (configEnv *ConfigEnv) Configuration() (*Configuration, error) { | ||
|
||
if configEnv.AccessKey == nil && configEnv.SecretKey == nil { | ||
if configEnv.ProfileName == nil { | ||
- *configEnv.ProfileName = "Default" | ||
+ value := "default" | ||
+ configEnv.ProfileName = &value | ||
} | ||
configFile, err := LoadDefaultConfigFile() | ||
if err != nil { | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# 2.18.2 | ||
- init profile for configEnv | ||
|
||
# 2.18.1 | ||
|
||
- no need to check region | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.18.1 | ||
2.18.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.