mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-14 03:37:31 +00:00
Fix create tenant command export
Signed-off-by: Sebastian Karasek <sebastian@karasek.io>
This commit is contained in:
parent
2c0aa3c3af
commit
c41487598e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue