Print resource name when patch is done

This commit is contained in:
Janet Kuo
2017-01-27 11:13:51 -08:00
parent 5fc6e2d704
commit a155111acd
2 changed files with 3 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ func RunPatch(f cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []strin
}
if options.OutputFormat == "name" || len(options.OutputFormat) == 0 {
cmdutil.PrintSuccess(mapper, options.OutputFormat == "name", out, "", name, false, dataChangedMsg)
cmdutil.PrintSuccess(mapper, options.OutputFormat == "name", out, info.Mapping.Resource, info.Name, false, dataChangedMsg)
}
return nil
}