Merge branch 'fix-nbi-objectmetrics-raise-exception' into 'master'

Fix typo on NBI objectmetrics.

See merge request !6870

(cherry picked from commit fcf387d4)

20dd77a3 Fix typo on NBI objectmetrics.
b7126066 Fix black.
6 jobs for !6871 with cherry-pick-fcf387d4 in 15 minutes and 38 seconds (queued for 5 seconds)
latest merge request