From 698434ba52178cd239ac28ad15f7e9a8f54a8b04 Mon Sep 17 00:00:00 2001 From: futuretea Date: Wed, 14 Dec 2022 12:18:09 +0800 Subject: [PATCH] Fix update network description Signed-off-by: futuretea --- internal/provider/network/resource_network_constructor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/provider/network/resource_network_constructor.go b/internal/provider/network/resource_network_constructor.go index 6b669931..8ce3d330 100644 --- a/internal/provider/network/resource_network_constructor.go +++ b/internal/provider/network/resource_network_constructor.go @@ -122,9 +122,7 @@ func (c *Constructor) Setup() util.Processors { if _, err = networkutils.NewLayer3NetworkConf(layer3NetworkConf); err != nil { return err } - c.Network.Annotations = map[string]string{ - networkutils.KeyNetworkConf: layer3NetworkConf, - } + c.Network.Annotations[networkutils.KeyNetworkConf] = layer3NetworkConf return nil }, Required: true,