Skip to content

Commit 37a6dbc

Browse files
committed
fix: immutable key
Signed-off-by: Kaan Doyurur <kaan@escape.tech>
1 parent 6d50a98 commit 37a6dbc

File tree

109 files changed

+16835
-1822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+16835
-1822
lines changed

pkg/api/escape/locations.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ func UpdateLocation(ctx context.Context, id string, name, sshPublicKey string) e
8585
if err != nil {
8686
return fmt.Errorf("unable to init client: %w", err)
8787
}
88+
enabled := true
8889
req := client.LocationsAPI.UpdateLocation(ctx, id).UpdateLocationRequest(v3.UpdateLocationRequest{
89-
Name: name,
90-
SshPublicKey: sshPublicKey,
91-
Enabled: true,
90+
Name: &name,
91+
SshPublicKey: &sshPublicKey,
92+
Enabled: &enabled,
93+
AdditionalProperties: map[string]interface{}{},
9294
})
9395
_, _, err = req.Execute()
9496
if err != nil {

pkg/api/v3/api_assets.go

Lines changed: 88 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)