From 96f717f3503f4ce2005e765a7e8d8221b6368d87 Mon Sep 17 00:00:00 2001 From: Matthias Teich Date: Wed, 24 Jan 2024 13:38:25 +0100 Subject: [PATCH] Fix: Add node addresses --- pkg/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index d85e6cb..a4b130c 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -129,7 +129,7 @@ func (a *IONOSClient) GetServerByName(ctx context.Context, name string) (*cloudp return nil, errors.New("client is initialized") } serverReq := a.client.ServersApi.DatacentersServersGet(ctx, a.DatacenterId) - servers, req, err := serverReq.Depth(2).Execute() + servers, req, err := serverReq.Depth(3).Execute() if err != nil || servers.Items == nil || req != nil && req.StatusCode == 404 { if err != nil { return nil, nil