Skip to content

Commit f1daa55

Browse files
committed
fix: use unique patch name for the hostname patches
The patch name should be unique per machine. Signed-off-by: Artem Chernyshev <[email protected]>
1 parent e7248ed commit f1daa55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/provider/provision.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (p *Provisioner) ProvisionSteps() []provision.Step[*resources.Machine] {
159159
return provision.NewRetryInterval(time.Second)
160160
}),
161161
provision.NewStep("configureHostname", func(ctx context.Context, _ *zap.Logger, pctx provision.Context[*resources.Machine]) error {
162-
return pctx.CreateConfigPatch(ctx, "hostname", []byte(fmt.Sprintf(`machine:
162+
return pctx.CreateConfigPatch(ctx, "000-hostname-%s"+pctx.GetRequestID(), []byte(fmt.Sprintf(`machine:
163163
network:
164164
hostname: %s`, pctx.GetRequestID())))
165165
}),

0 commit comments

Comments
 (0)