Fix static anylysy
This commit is contained in:
parent
b8a275d3e4
commit
acfb8464be
2 changed files with 10 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue