From c41487598e0a8b30b289d5241a206b5a6f0f6439 Mon Sep 17 00:00:00 2001 From: Sebastian Karasek Date: Tue, 10 Nov 2020 20:01:52 +0100 Subject: [PATCH] Fix create tenant command export Signed-off-by: Sebastian Karasek --- cmd/flux/create_tenant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/create_tenant.go b/cmd/flux/create_tenant.go index e6a1a30a..c3031dd8 100644 --- a/cmd/flux/create_tenant.go +++ b/cmd/flux/create_tenant.go @@ -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 } }