mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Don't print "running in local/dry-run mode..." at the top
because the user may be trying to pipe the output of this command as the input to another. This makes `set subject` and `set resources` consistent with all similar commands in this directory. Signed-off-by: Bryan Boreham <bryan@weave.works>
This commit is contained in:
committed by
Bryan Boreham
parent
58167fcfa1
commit
219cebecf7
@@ -172,7 +172,6 @@ func (o *SelectorOptions) RunSelector() error {
|
||||
return patch.Err
|
||||
}
|
||||
if o.local || o.dryrun {
|
||||
fmt.Fprintln(o.out, "running in local/dry-run mode...")
|
||||
o.PrintObject(info.Object)
|
||||
return nil
|
||||
}
|
||||
|
@@ -224,7 +224,6 @@ func (o *SubjectOptions) Run(f cmdutil.Factory, fn updateSubjects) error {
|
||||
}
|
||||
|
||||
if o.Local || o.DryRun {
|
||||
fmt.Fprintln(o.Out, "running in local/dry-run mode...")
|
||||
return o.PrintObject(o.Mapper, info.Object, o.Out)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user