You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# skip deletion of a descendant group to prevent scenarios where parent group gets deleted leaving a dangling descendant whose deletion will throw 404s.
101
-
ifgroup.parent_id:
102
-
logging.info(
103
-
f"Skipping deletion of {group.full_path} as it is a descendant group and will be removed when the parent group is deleted"
104
-
)
105
-
continue
106
-
98
+
# skip deletion of a descendant group to prevent scenarios where parent group gets deleted leaving a dangling descendant whose deletion will throw 404s.
99
+
forgroupingl.groups.list(top_level_only=True):
107
100
fordeploy_tokeningroup.deploytokens.list():
108
101
logging.info(
109
102
f"Deleting deploy token: {deploy_token.username!r} in "
0 commit comments