fix: Missing root variable

This commit is contained in:
Ilya Kuznetsov 2024-11-14 18:46:10 +01:00
parent 51c8ef592c
commit 4cf692924c
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
} }
if config.IsExplicitlyEnabled((b.Config.Presets.InPlaceDeployment)) { if config.IsExplicitlyEnabled((b.Config.Presets.InPlaceDeployment)) {
isInWorkspace := ok && strings.HasPrefix(root, "/Workspace/") root := b.SyncRoot.Native()
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
if isInWorkspace && dbr.RunsOnRuntime(ctx) { if isInWorkspace && dbr.RunsOnRuntime(ctx) {
b.Config.Workspace.FilePath = b.SyncRootPath b.Config.Workspace.FilePath = b.SyncRootPath
} else { } else {