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 unique_iid = 0
# If it's still conflicted, finding an unique environment scope incrementaly # If it's still conflicted, finding an unique environment scope incrementaly
while true loop do
candidate = "migrated#{unique_iid}/*" candidate = "migrated#{unique_iid}/*"
return candidate if environment_scopes.exclude?(candidate) return candidate if environment_scopes.exclude?(candidate)
unique_iid += 1 unique_iid += 1
end end
end end