From 009e9897f7848ca8a7f7e1f2f70e5ee20af32c1e Mon Sep 17 00:00:00 2001 From: Ian Zink Date: Thu, 23 Feb 2017 17:30:49 -0600 Subject: [PATCH] Check env variable for cloudconfig networks --- plugins/cloudconfigs/base_cloudconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cloudconfigs/base_cloudconfig.go b/plugins/cloudconfigs/base_cloudconfig.go index 67acdfb..0833d49 100644 --- a/plugins/cloudconfigs/base_cloudconfig.go +++ b/plugins/cloudconfigs/base_cloudconfig.go @@ -106,7 +106,7 @@ func CreateNetworks(context *cli.Context, validateCloudPropertiesFunction func(i for i := 1; i <= SupportedNetworkCount; i++ { networkFlag := fmt.Sprintf("network-name-%d", i) networkName := context.String(networkFlag) - if !context.IsSet(networkFlag) { + if !context.IsSet(networkFlag) && networkName == "" { continue }