From 5d84cb9dd73e18c8c2d63911f3c132c383776f26 Mon Sep 17 00:00:00 2001 From: Yvonnick Esnault Date: Sun, 28 Jun 2020 23:23:25 +0200 Subject: [PATCH] fix(hatchery/vsphere): init endpoint close #5281 initial commit https://github.com/ovh/cds/commit/c389564867fa7be76441c13d302c311dd42a94f8 Signed-off-by: Yvonnick Esnault --- engine/hatchery/vsphere/init.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/hatchery/vsphere/init.go b/engine/hatchery/vsphere/init.go index 90f99e0b41..099b72dc47 100644 --- a/engine/hatchery/vsphere/init.go +++ b/engine/hatchery/vsphere/init.go @@ -13,6 +13,11 @@ import ( // InitHatchery create new client for vsphere func (h *HatcheryVSphere) InitHatchery(ctx context.Context) error { + + h.user = h.Config.VSphereUser + h.password = h.Config.VSpherePassword + h.endpoint = h.Config.VSphereEndpoint + // Connect and login to ESX or vCenter c, errNc := h.newClient(ctx) if errNc != nil {