From aae5d0dc33334dfc04124a0744f07782063bd8e0 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 4 Feb 2020 16:45:54 +0800 Subject: [PATCH] hostman: fix detection of ovn controller version --- pkg/hostman/hostinfo/hostovn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/hostinfo/hostovn.go b/pkg/hostman/hostinfo/hostovn.go index a3e2d5c843..34678f4664 100644 --- a/pkg/hostman/hostinfo/hostovn.go +++ b/pkg/hostman/hostinfo/hostovn.go @@ -107,7 +107,7 @@ func (oh *OvnHelper) mustPrepService() { } func MustGetOvnVersion() string { - output, err := procutils.NewCommand("ovn-controller", "--version").Output() + output, err := procutils.NewRemoteCommandAsFarAsPossible("ovn-controller", "--version").Output() if err != nil { return "" }