also remove volumeLayout if collection is empty

This commit is contained in:
Chris Lu
2018-07-11 02:01:33 -07:00
parent 1e1c368ae8
commit f7afa80250
4 changed files with 54 additions and 8 deletions

View File

@@ -20,8 +20,8 @@ type topology struct {
DataCenters []dataCenter `xml:"DataCenter"`
}
type Configuration struct {
XMLName xml.Name `xml:"Configuration"`
Topo topology `xml:"Topology"`
XMLName xml.Name `xml:"Configuration"`
Topo topology `xml:"Topology"`
ip2location map[string]loc // this is not used any more. leave it here for later.
}