CoreApi: do not wipe uncollected stages
This commit is contained in:
parent
6c23cd72e5
commit
d27c8a9948
|
@ -439,10 +439,14 @@ constants
|
|||
return $found;
|
||||
}
|
||||
|
||||
public function wipeInactiveStages()
|
||||
public function wipeInactiveStages($db)
|
||||
{
|
||||
$uncollected = $db->getUncollectedDeployments();
|
||||
$moduleName = 'director';
|
||||
foreach ($this->listModuleStages($moduleName, false) as $stage) {
|
||||
if (array_key_exists($stage, $uncollected)) {
|
||||
continue;
|
||||
}
|
||||
$this->client->delete('config/stages/' . $moduleName . '/' . $stage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue