Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
fix namespace switch
Browse files Browse the repository at this point in the history
  • Loading branch information
tedteng committed Jun 25, 2021
1 parent 497ffd8 commit e9aec0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/target_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,18 @@ func NewHistoryCmd(targetWriter TargetWriter) *cobra.Command {

if val, ok := m[targetInfoNamespace]; ok {
appendTarget(&target, targetInfoNamespace, val)

err := namespaceWrapper(nil, targetWriter, val)
if err != nil {
return err
}
}

err = targetWriter.WriteTarget(pathTarget, &target)
if err != nil {
return fmt.Errorf("error write target %s", err)
}

return nil
},
}
Expand Down

0 comments on commit e9aec0e

Please sign in to comment.