From 6f457dcd8c2c31ee89a6cbcb23e67f63c29436e0 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 10 Feb 2020 14:39:38 +0100 Subject: [PATCH] preflight: Don't export CheckNetworkManagerIsRunning Most likely a small typo as this method does not need to be exported. --- pkg/crc/preflight/preflight_checks_linux.go | 2 +- pkg/crc/preflight/preflight_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/crc/preflight/preflight_checks_linux.go b/pkg/crc/preflight/preflight_checks_linux.go index a29d6df123..f378025e4a 100644 --- a/pkg/crc/preflight/preflight_checks_linux.go +++ b/pkg/crc/preflight/preflight_checks_linux.go @@ -528,7 +528,7 @@ func fixNetworkManagerInstalled() error { return fmt.Errorf("NetworkManager is required and must be installed manually") } -func CheckNetworkManagerIsRunning() error { +func checkNetworkManagerIsRunning() error { logging.Debug("Checking if NetworkManager.service is running") path, err := exec.LookPath("systemctl") if err != nil { diff --git a/pkg/crc/preflight/preflight_linux.go b/pkg/crc/preflight/preflight_linux.go index aaa08f676f..de2540df4e 100644 --- a/pkg/crc/preflight/preflight_linux.go +++ b/pkg/crc/preflight/preflight_linux.go @@ -90,7 +90,7 @@ var libvirtPreflightChecks = [...]PreflightCheck{ { configKeySuffix: "check-network-manager-running", checkDescription: "Checking if NetworkManager service is running", - check: CheckNetworkManagerIsRunning, + check: checkNetworkManagerIsRunning, fixDescription: "Checking if NetworkManager service is running", fix: fixNetworkManagerIsRunning, },