We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17ce001 commit 79976f8Copy full SHA for 79976f8
pkg/common/cns-lib/vsphere/virtualcenter.go
@@ -283,7 +283,13 @@ func (vc *VirtualCenter) cleanupVCClient(ctx context.Context) {
283
if err := vc.Client.Logout(ctx); err != nil {
284
log.With("err", err).Warn("Could not logout of VC session")
285
}
286
+
287
+ // nullifies all the clients so that they are created anew during next Connection attempt
288
vc.Client = nil
289
+ vc.PbmClient = nil
290
+ vc.CnsClient = nil
291
+ vc.VsanClient = nil
292
+ vc.VslmClient = nil
293
294
295
// Connect establishes a new connection with vSphere with updated credentials.
0 commit comments