Skip to content

Commit 28691b3

Browse files
committed
remove duplicated MACAddress and AdminStateUp status writing
1 parent b094882 commit 28691b3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

internal/controllers/port/status.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ func (portStatusWriter) ApplyResourceStatus(log logr.Logger, osResource *osResou
7272
WithPortSecurityEnabled(osResource.PortSecurityEnabled).
7373
WithRevisionNumber(int64(osResource.RevisionNumber)).
7474
WithCreatedAt(metav1.NewTime(osResource.CreatedAt)).
75-
WithUpdatedAt(metav1.NewTime(osResource.UpdatedAt)).
76-
WithAdminStateUp(osResource.AdminStateUp).
77-
WithMACAddress(osResource.MACAddress)
75+
WithUpdatedAt(metav1.NewTime(osResource.UpdatedAt))
7876

7977
if osResource.Description != "" {
8078
resourceStatus.WithDescription(osResource.Description)

0 commit comments

Comments
 (0)