#NEWLINE# @ staticmethod #NEWLINE# def get_storage_placement_spec( ds_clust_obj , vm , vm_reconfig_spec ) : #NEWLINE# #INDENT# storage_placement_spec = vim . storageDrs . StoragePlacementSpec ( ) #NEWLINE# storage_placement_spec . type = vim . storageDrs . StoragePlacementSpec . PlacementType . reconfigure #NEWLINE# storage_placement_spec . configSpec = vm_reconfig_spec #NEWLINE# storage_placement_spec . podSelectionSpec = vim . storageDrs . PodSelectionSpec ( ) #NEWLINE# storage_placement_spec . vm = vm #NEWLINE# vm_pod_cfg = vim . storageDrs . PodSelectionSpec . VmPodConfig ( ) #NEWLINE# vm_pod_cfg . storagePod = ds_clust_obj #NEWLINE# disk_locator = vim . storageDrs . PodSelectionSpec . DiskLocator ( ) #NEWLINE# disk_locator . diskBackingInfo = vm_reconfig_spec . deviceChange [ 0 ] . device . backing #NEWLINE# vm_pod_cfg . disk = [ disk_locator ] #NEWLINE# storage_placement_spec . podSelectionSpec . initialVmConfig = [ vm_pod_cfg ] #NEWLINE# return storage_placement_spec