Skip to content

Commit

Permalink
fix(dismiss): --with-namespace created empty namespace if release alr…
Browse files Browse the repository at this point in the history
…eady uninstalled

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Jun 7, 2022
1 parent 23d3469 commit 7c1ab9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/werf/dismiss/dismiss.go
Expand Up @@ -187,10 +187,12 @@ func runDismiss(ctx context.Context) error {
}

var lockManager *lock_manager.LockManager
if m, err := lock_manager.NewLockManager(namespace); err != nil {
return fmt.Errorf("unable to create lock manager: %w", err)
} else {
lockManager = m
if !cmdData.WithNamespace {
if m, err := lock_manager.NewLockManager(namespace); err != nil {
return fmt.Errorf("unable to create lock manager: %w", err)
} else {
lockManager = m
}
}

chartDir, err := common.GetHelmChartDir(werfConfigPath, werfConfig, giterminismManager)
Expand Down

0 comments on commit 7c1ab9b

Please sign in to comment.