Fix create tenant command export

Signed-off-by: Sebastian Karasek <sebastian@karasek.io>
pull/444/head
Sebastian Karasek 4 years ago
parent 2c0aa3c3af
commit c41487598e
No known key found for this signature in database
GPG Key ID: DB0AFC6D3FF72850

@ -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
}
}

Loading…
Cancel
Save