Skip to content

Commit

Permalink
Force disk migration when datastore cluster changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-hofmann authored and appilon committed Feb 4, 2022
1 parent eefa398 commit 4a03135
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,9 @@ func DiskMigrateRelocateOperation(d *schema.ResourceData, c *govmomi.Client, l o
ods, nds := d.GetChange(subresourceTypeDisk)

var relocators []types.VirtualMachineRelocateSpecDiskLocator
var relocateOK bool

// We definitely need to relocate if the datastore cluster changed
relocateOK := d.HasChange("datastore_cluster_id")

// We are only concerned with resources that would normally be updated, as
// incoming or outgoing disks obviously won't need migrating. Hence, this is
Expand Down

0 comments on commit 4a03135

Please # to comment.