From f12737908365e5bd79f5f3cfd2cc824916aa83a6 Mon Sep 17 00:00:00 2001 From: "Cuong. Duong Manh" Date: Sat, 14 Sep 2024 18:24:28 +0700 Subject: [PATCH] [chore] add uuid of net in of server --- vngcloud/entity/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vngcloud/entity/server.go b/vngcloud/entity/server.go index deeea47..01dacf6 100644 --- a/vngcloud/entity/server.go +++ b/vngcloud/entity/server.go @@ -103,14 +103,14 @@ func (s *Server) IsRunning() bool { return false } -func (s *Server) GetInternalInterfaceWanInfo() (string, string, bool) { +func (s *Server) GetInternalInterfaceWanInfo() (string, string, string, bool) { for _, i := range s.InternalInterfaces { if i.FloatingIp != "" { - return i.FloatingIpId, i.FloatingIp, true + return i.Uuid, i.FloatingIpId, i.FloatingIp, true } } - return "", "", false + return "", "", "", false } func (s *Server) GetInternalNetworkInterfaceIds() []string {