Skip to content

Commit

Permalink
[chore] add uuid of net in of server
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Sep 14, 2024
1 parent aa777f7 commit f127379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vngcloud/entity/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f127379

Please sign in to comment.