Merge pull request #444 from arodus/patch-1

Fix create tenant command export
This commit is contained in:
Stefan Prodan 2020-11-11 14:27:59 +02:00 committed by GitHub
commit 237d186207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ func createTenantCmdRun(cmd *cobra.Command, args []string) error {
if export {
for i, _ := range tenantNamespaces {
if err := exportTenant(namespaces[i], roleBindings[1]); err != nil {
if err := exportTenant(namespaces[i], roleBindings[i]); err != nil {
return err
}
}