Skip to content

Commit

Permalink
osc-sdk-go v2.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentBaer authored and Vincent Baer committed Jul 17, 2023
1 parent 3039636 commit 070380c
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .osc-patches/2023-07-17-init-profile-context.patch
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

3 changes: 3 additions & 0 deletions changelog.md
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
Expand Down
2 changes: 1 addition & 1 deletion sdk_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.18.1
2.18.2
2 changes: 1 addition & 1 deletion v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An OpenAPI description of the OUTSCALE API is also available in this [GitHub rep
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.27
- Package version: 2.18.1
- Package version: 2.18.2
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
3 changes: 2 additions & 1 deletion v2/config_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ func (configEnv *ConfigEnv) Context(ctx context.Context) (context.Context, 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 {
Expand Down
2 changes: 1 addition & 1 deletion v2/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 070380c

Please sign in to comment.