fix: ipsec: spec is nil.
Some checks failed
Coverage CI / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Ubuntu CI / build (push) Has been cancelled

This commit is contained in:
Daniel Ding
2025-05-22 21:08:27 +08:00
parent d610db9c88
commit 24a8e89fa5

View File

@@ -171,13 +171,12 @@ func (s *Switch) Dir(elem0, elem1 string) string {
}
func (s *Switch) RemarshalNetwork(obj *Network, format string) {
context := obj.Specifies
obj.NewSpecifies()
if obj.Specifies == nil {
return
}
context := obj.Specifies
obj.NewSpecifies()
if format == "" {
format = "json"
if s.IsYaml() {