Skip to content

Commit 1ad294c

Browse files
committed
OCPBUGS-36284: Remove etcd store when provisioning fails
1 parent fcaa07d commit 1ad294c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/infrastructure/clusterapi/clusterapi.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func (i *InfraProvider) Provision(ctx context.Context, dir string, parents asset
155155
fileList, errs = i.collectManifests(ctx, cl)
156156
// If Provision returned an error, add it to the list
157157
if err != nil {
158+
capiSystem.CleanEtcd()
158159
errs = append(errs, err)
159160
}
160161
err = utilerrors.NewAggregate(errs)

0 commit comments

Comments
 (0)