intel-device-plugins-for-ku.../pkg/topology
Ukri Niemimuukko 39c934b22f topology: avoid unnecessary warning prints
Doing strings.Split with a non-empty separator against a potentially
empty string (hint.NUMAs) may return an empty string in a slice of
size one, which then doesn't parse nicely with ParseInt and results
in a repeating warning.

It is better to check for hint.NUMAs emptiness before trying to
split it.

Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
2020-04-16 19:11:39 +03:00
..
testdata Copy toplogogy module from cri-resource-manager 2020-02-11 12:06:25 +02:00
topology_test.go topology: avoid unnecessary warning prints 2020-04-16 19:11:39 +03:00
topology.go topology: avoid unnecessary warning prints 2020-04-16 19:11:39 +03:00