diff --git a/pkg/controller/infrastructure/ensurer/networks.go b/pkg/controller/infrastructure/ensurer/networks.go index 8f9a5892..3f60715b 100644 --- a/pkg/controller/infrastructure/ensurer/networks.go +++ b/pkg/controller/infrastructure/ensurer/networks.go @@ -128,7 +128,7 @@ func EnsureNetworks(ctx context.Context, client *ionossdk.APIClient, datacenterI resultData.WANID = wanID } - if "" != networks.Workers { + if nil != networks && "" != networks.Workers { name = fmt.Sprintf("%s-workers", namespace) for _, lan := range *lans.Items {