Skip to content

Commit c5f0403

Browse files
authored
Set OS label on machine.Spec (#926)
Signed-off-by: Artiom Diomin <[email protected]>
1 parent 3bedfd0 commit c5f0403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/admission/machines.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (ad *admissionData) mutateMachines(ar admissionv1.AdmissionRequest) (*admis
9292
if err != nil {
9393
return nil, err
9494
}
95-
common.SetOSLabel(&machine, string(providerConfig.OperatingSystem))
95+
common.SetOSLabel(&machine.Spec, string(providerConfig.OperatingSystem))
9696
}
9797

9898
return createAdmissionResponse(machineOriginal, &machine)

0 commit comments

Comments
 (0)