Skip to content

Commit

Permalink
handle empty SAs for json/yaml output
Browse files Browse the repository at this point in the history
  • Loading branch information
aclevername committed Feb 1, 2021
1 parent 64cca6c commit dd14d55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/ctl/get/iamserviceaccount.go
Expand Up @@ -85,10 +85,8 @@ func doGetIAMServiceAccount(cmd *cmdutils.Cmd, namespace, name string, params *g
if params.output == "table" {
addIAMServiceAccountSummaryTableColumns(printer.(*printers.TablePrinter))
obj = serviceAccounts
} else {
cfg.IAM.ServiceAccounts = serviceAccounts
obj = cfg
}
obj = serviceAccounts
return printer.PrintObjWithKind("iamserviceaccounts", obj, os.Stdout)
}

Expand Down

0 comments on commit dd14d55

Please sign in to comment.