Skip to content

Commit

Permalink
Avoid gathering role data after repo
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders committed May 18, 2021
1 parent b5012b4 commit 7efc02e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions repokid/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,6 @@ def repo(
# repos will stay scheduled until they are successful
self.repoed = datetime.datetime.now(tz=datetime.timezone.utc).isoformat()
update_repoed_description(self.role_name, conn)
self.gather_role_data(
hooks,
current_policies=current_policies,
source="Repo",
add_no_repo=False,
)
logger.info(
"Successfully repoed role: {} in account {}".format(
self.role_name, self.account
Expand All @@ -708,7 +702,7 @@ def repo(
self.store()
except RoleStoreError:
logger.exception("failed to store role after repo", exc_info=True)
return []
return errors


class RoleList(object):
Expand Down

0 comments on commit 7efc02e

Please sign in to comment.