Commit ae30612c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'alberts-fix-automated-cleanup' into 'master'

Fix typo in variable name

See merge request gitlab-org/gitlab!71525
parents df77281e 51e0ce26
...@@ -194,7 +194,7 @@ class AutomatedCleanup ...@@ -194,7 +194,7 @@ class AutomatedCleanup
def delete_stopped_environments(environment_type:, checked_environments:, last_updated_threshold:) def delete_stopped_environments(environment_type:, checked_environments:, last_updated_threshold:)
gitlab.environments(project_path, per_page: DEPLOYMENTS_PER_PAGE, sort: 'desc', states: 'stopped', search: ENVIRONMENT_PREFIX[environment_type]).auto_paginate do |environment| gitlab.environments(project_path, per_page: DEPLOYMENTS_PER_PAGE, sort: 'desc', states: 'stopped', search: ENVIRONMENT_PREFIX[environment_type]).auto_paginate do |environment|
next if skip_environment?(environment: environment, checked_environments: checked_environments, last_updated_threshold: delete_threshold, environment_type: environment_type) next if skip_environment?(environment: environment, checked_environments: checked_environments, last_updated_threshold: last_updated_threshold, environment_type: environment_type)
yield environment if delete_environment(environment) yield environment if delete_environment(environment)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment