Make sure extra disks (if any) are detached from compute being deleted

This commit is contained in:
Sergey Shubin svs1370
2021-10-05 15:01:09 +03:00
parent 8da3f8d348
commit cf669a7a72
2 changed files with 36 additions and 7 deletions

View File

@@ -241,7 +241,7 @@ func parseComputeInterfaces(ifaces []InterfaceRecord) []map[string]interface{} {
}
func flattenCompute(d *schema.ResourceData, compFacts string) error {
// This function expects that comp_facts string contains response from API compute/get,
// This function expects that compFacts string contains response from API compute/get,
// i.e. detailed information about compute instance.
//
// NOTE: this function modifies ResourceData argument - as such it should never be called