mirror of https://github.com/apache/cloudstack.git
bug 8897: allow to delete a zone when it has alerts
status 8897: resolved fixed
This commit is contained in:
parent
33fff1262e
commit
2f782305fd
|
|
@ -418,12 +418,6 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
vmInstance.add(2, "there are virtual machines running in this pod");
|
||||
tablesToCheck.add(vmInstance);
|
||||
|
||||
// List<String> alert = new ArrayList<String>();
|
||||
// alert.add(0, "alert");
|
||||
// alert.add(1, "pod_id");
|
||||
// alert.add(2, "there are alerts for this pod");
|
||||
// tablesToCheck.add(alert);
|
||||
|
||||
for (List<String> table : tablesToCheck) {
|
||||
String tableName = table.get(0);
|
||||
String column = table.get(1);
|
||||
|
|
@ -816,12 +810,6 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
protected void checkIfZoneIsDeletable(long zoneId) {
|
||||
List<List<String>> tablesToCheck = new ArrayList<List<String>>();
|
||||
|
||||
List<String> alert = new ArrayList<String>();
|
||||
alert.add(0, "alert");
|
||||
alert.add(1, "data_center_id");
|
||||
alert.add(2, "there are alerts for this zone");
|
||||
tablesToCheck.add(alert);
|
||||
|
||||
List<String> host = new ArrayList<String>();
|
||||
host.add(0, "host");
|
||||
host.add(1, "data_center_id");
|
||||
|
|
|
|||
Loading…
Reference in New Issue