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.
99
-
forgroupingl.groups.list(top_level_only=True):
98
+
forgroupingl.groups.list():
99
+
100
+
# 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
+
100
107
fordeploy_tokeningroup.deploytokens.list():
101
108
logging.info(
102
109
f"Deleting deploy token: {deploy_token.username!r} in "
0 commit comments