Skip to content

Commit

Permalink
Merge pull request #396 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…95-to-release-4.16

[release-4.16] OCPBUGS-47710: fix backport mistake
  • Loading branch information
vitus133 authored Dec 31, 2024
2 parents 0aee9df + 74ee105 commit 55240ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion plugins/ptp_operator/metrics/logparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ func (p *PTPEventManager) ParseGMLogs(processName, configName, output string, fi
SyncState.With(map[string]string{"process": processName, "node": ptpNodeName, "iface": alias}).Set(GetSyncStateID(syncState))
// status metrics
ptpStats[masterType].SetPtpDependentEventState(clockState, ptpStats.HasMetrics(processName), ptpStats.HasMetricHelp(processName))
ptpStats[masterType].SetLastSyncState(clockState.State)
ptpStats[masterType].SetAlias(alias)

// If GM is locked/Freerun/Holdover then ptp state change event
Expand Down
1 change: 1 addition & 0 deletions plugins/ptp_operator/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ var testCases = []TestCase{
expectedNmeaStatus: SKIP,
expectedPpsStatus: SKIP,
expectedClockClassMetrics: SKIP,
expectedEvent: ptp.PtpStateChange,
},
{
log: "gnss[1000000500]:[ts2phc.0.config] ens2f1 gnss_status 3 offset 5 s2",
Expand Down

0 comments on commit 55240ed

Please sign in to comment.