ensure PrinterForCommand is consumed through cmdutil.Factory

This commit is contained in:
juanvallejo
2017-10-31 15:44:05 -04:00
parent 923abd0149
commit c53120e6b9
8 changed files with 13 additions and 16 deletions

View File

@@ -865,7 +865,7 @@ func testConfigCommand(args []string, startingConfig clientcmdapi.Config, t *tes
buf := bytes.NewBuffer([]byte{})
cmd := NewCmdConfig(clientcmd.NewDefaultPathOptions(), buf, buf)
cmd := NewCmdConfig(cmdutil.NewFactory(nil), clientcmd.NewDefaultPathOptions(), buf, buf)
cmd.SetArgs(argsToUse)
cmd.Execute()