From 1fab98286b7a7a74ba36a4ebf60734d8810147f4 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 28 Nov 2022 01:34:02 -0500 Subject: [PATCH] fix: also report that there is a network config if a static-web-listener is specified --- plugins/network/network.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/network/network.go b/plugins/network/network.go index 23d8c0b13..26e636aef 100644 --- a/plugins/network/network.go +++ b/plugins/network/network.go @@ -225,7 +225,11 @@ func HasNetworkConfig(appName string) bool { ipfile := fmt.Sprintf("%v/IP.web.1", appRoot) portfile := fmt.Sprintf("%v/PORT.web.1", appRoot) - return common.FileExists(ipfile) && common.FileExists(portfile) + if common.FileExists(ipfile) && common.FileExists(portfile) { + return true + } + + return reportStaticWebListener(appName) != "" } // ClearNetworkConfig removes old IP and PORT files for a newly cloned app