diff --git a/cinder/tests/unit/volume/drivers/vmware/test_vmware_volumeops.py b/cinder/tests/unit/volume/drivers/vmware/test_vmware_volumeops.py index 0e3cb51e8c4..7b5599a4574 100644 --- a/cinder/tests/unit/volume/drivers/vmware/test_vmware_volumeops.py +++ b/cinder/tests/unit/volume/drivers/vmware/test_vmware_volumeops.py @@ -1219,7 +1219,6 @@ class VolumeOpsTestCase(test.TestCase): backing = mock.sentinel.backing self.vops.change_backing_profile(backing, None) - self.assertEqual('profile', empty_profile_spec.dynamicType) self.assertEqual([empty_profile_spec], reconfig_spec.vmProfile) get_disk_device.assert_called_once_with(backing) self.assertEqual(disk_device, disk_spec.device) diff --git a/cinder/volume/drivers/vmware/volumeops.py b/cinder/volume/drivers/vmware/volumeops.py index 27e7ffebfa4..fe55ad97601 100644 --- a/cinder/volume/drivers/vmware/volumeops.py +++ b/cinder/volume/drivers/vmware/volumeops.py @@ -1220,7 +1220,6 @@ class VMwareVolumeOps(object): if profile_id is None: vm_profile = cf.create('ns0:VirtualMachineEmptyProfileSpec') - vm_profile.dynamicType = 'profile' else: vm_profile = cf.create('ns0:VirtualMachineDefinedProfileSpec') vm_profile.profileId = profile_id.uniqueId