Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/common/cns-lib/vsphere/virtualcenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ func (vc *VirtualCenter) Connect(ctx context.Context) error {
// Set up the vc connection.
err := vc.connect(ctx)
if err != nil {
// If the error is due to incorrect credentials,
// retry with backoff here.
log.Errorf("Cannot connect to vCenter with err: %v", err)
// Logging out of the current session to make sure the retry create
// a new client in the next attempt.
Expand Down