diff --git a/lib/vicadmin/validate.go b/lib/vicadmin/validate.go index 39fd625828..28b7680868 100644 --- a/lib/vicadmin/validate.go +++ b/lib/vicadmin/validate.go @@ -250,11 +250,6 @@ func NewValidator(ctx context.Context, vch *config.VirtualContainerHostConfigSpe log.Errorf("Had a problem querying the datastores: %s", err.Error()) } v.QueryVCHStatus(vch, sess) - defer func() { - if sess != nil && len(nwErrors) > 0 { - sess.Logout(ctx) - } - }() return v }