Skip to content

Commit e8bbd09

Browse files
committed
update ConvertStringMapToInterfaceMap parameter/argument
1 parent 1e76138 commit e8bbd09

File tree

19 files changed

+23
-22
lines changed

19 files changed

+23
-22
lines changed

internal/cmd/image/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func createPayload(_ context.Context, model *inputModel) iaas.CreateImagePayload
343343
payload := iaas.CreateImagePayload{
344344
DiskFormat: &model.DiskFormat,
345345
Name: &model.Name,
346-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
346+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
347347
MinDiskSize: model.MinDiskSize,
348348
MinRam: model.MinRam,
349349
Protected: model.Protected,

internal/cmd/image/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
246246

247247
// Config *ImageConfig `json:"config,omitempty"`
248248
payload.DiskFormat = model.DiskFormat
249-
payload.Labels = utils.ConvertStringMapToInterfaceMap(*model.Labels)
249+
payload.Labels = utils.ConvertStringMapToInterfaceMap(model.Labels)
250250
payload.MinDiskSize = model.MinDiskSize
251251
payload.MinRam = model.MinRam
252252
payload.Name = model.Name

internal/cmd/key-pair/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
126126

127127
payload := iaas.CreateKeyPairPayload{
128128
Name: model.Name,
129-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
129+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
130130
PublicKey: model.PublicKey,
131131
}
132132

internal/cmd/key-pair/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
8888
req := apiClient.UpdateKeyPair(ctx, *model.KeyPairName)
8989

9090
payload := iaas.UpdateKeyPairPayload{
91-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
91+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
9292
}
9393
return req.UpdateKeyPairPayload(payload)
9494
}

internal/cmd/network-area/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
174174

175175
payload := iaas.CreateNetworkAreaPayload{
176176
Name: model.Name,
177-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
177+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
178178
AddressFamily: &iaas.CreateAreaAddressFamily{
179179
Ipv4: &iaas.CreateAreaIPv4{
180180
DefaultNameservers: model.DnsNameServers,

internal/cmd/network-area/route/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
152152
{
153153
Prefix: model.Prefix,
154154
Nexthop: model.Nexthop,
155-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
155+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
156156
},
157157
},
158158
}

internal/cmd/network-area/route/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
131131
req := apiClient.UpdateNetworkAreaRoute(ctx, *model.OrganizationId, *model.NetworkAreaId, model.RouteId)
132132

133133
payload := iaas.UpdateNetworkAreaRoutePayload{
134-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
134+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
135135
}
136136
req = req.UpdateNetworkAreaRoutePayload(payload)
137137

internal/cmd/network-area/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
155155

156156
payload := iaas.PartialUpdateNetworkAreaPayload{
157157
Name: model.Name,
158-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
158+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
159159
AddressFamily: &iaas.UpdateAreaAddressFamily{
160160
Ipv4: &iaas.UpdateAreaIPv4{
161161
DefaultNameservers: model.DnsNameServers,

internal/cmd/network-interface/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
211211
AllowedAddresses: model.AllowedAddresses,
212212
Ipv4: model.Ipv4,
213213
Ipv6: model.Ipv6,
214-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
214+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
215215
Name: model.Name,
216216
NicSecurity: model.NicSecurity,
217217
SecurityGroups: model.SecurityGroups,

internal/cmd/network-interface/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *iaas.APICli
201201

202202
payload := iaas.UpdateNicPayload{
203203
AllowedAddresses: model.AllowedAddresses,
204-
Labels: utils.ConvertStringMapToInterfaceMap(*model.Labels),
204+
Labels: utils.ConvertStringMapToInterfaceMap(model.Labels),
205205
Name: model.Name,
206206
NicSecurity: model.NicSecurity,
207207
SecurityGroups: model.SecurityGroups,

0 commit comments

Comments
 (0)