Skip to content

Commit ccd820b

Browse files
committed
wrong nil check
1 parent 62e2ed1 commit ccd820b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cfn-resources/cluster/cmd/resource/mappings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func expandLabelSlice(labels []Labels) *[]admin.ComponentLabel {
201201
key = *labels[i].Key
202202
}
203203
var value string
204-
if labels[i].Key != nil {
204+
if labels[i].Value != nil {
205205
value = *labels[i].Value
206206
}
207207
res[i] = admin.ComponentLabel{

0 commit comments

Comments
 (0)