Fix kubectl auth can-i exit errcode

This commit is contained in:
Borja Aranda
2018-02-08 16:46:11 +01:00
parent e59ae29fbc
commit 9fa269a5e5
2 changed files with 7 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ func NewCmdCanI(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.C
allowed, err := o.RunAccessCheck()
if err == nil {
if o.Quiet && !allowed {
if !allowed {
os.Exit(1)
}
}