mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 08:01:48 +00:00
Merge pull request #1328 from fluxcd/bootstrap-team-prnt-fix
Change permission grant error print conditons
This commit is contained in:
commit
cb6470f817
1 changed files with 2 additions and 3 deletions
|
|
@ -321,9 +321,8 @@ func (b *GitProviderBootstrapper) reconcileOrgRepository(ctx context.Context) (g
|
||||||
_, changed, err = repo.TeamAccess().Reconcile(ctx, i)
|
_, changed, err = repo.TeamAccess().Reconcile(ctx, i)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
warning = fmt.Errorf("failed to grant permissions to team: %w", ErrReconciledWithWarning)
|
warning = fmt.Errorf("failed to grant permissions to team: %w", ErrReconciledWithWarning)
|
||||||
b.logger.Failuref("failed to grant %q permissions to %q: %w", *i.Permission, i.Name, err)
|
b.logger.Failuref("failed to grant %q permissions to %q: %s", *i.Permission, i.Name, err.Error())
|
||||||
}
|
} else if changed {
|
||||||
if changed {
|
|
||||||
b.logger.Successf("granted %q permissions to %q", *i.Permission, i.Name)
|
b.logger.Successf("granted %q permissions to %q", *i.Permission, i.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue