Fix static anylysy

This commit is contained in:
Shinya Maeda 2018-01-05 15:22:45 +09:00
parent b8a275d3e4
commit acfb8464be
2 changed files with 10 additions and 9 deletions

View File

@ -85,9 +85,10 @@ class MigrateKubernetesServiceToNewClustersArchitectures < ActiveRecord::Migrati
unique_iid = 0
# If it's still conflicted, finding an unique environment scope incrementaly
while true
loop do
candidate = "migrated#{unique_iid}/*"
return candidate if environment_scopes.exclude?(candidate)
unique_iid += 1
end
end