mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
[SQL Migration] Remove faulty SQL VM state validation (#19623)
* Remove VM state validation * Remove string too * Remove a few more references
This commit is contained in:
@@ -620,19 +620,10 @@ export async function getVirtualMachinesDropdownValues(virtualMachines: azure.Sq
|
||||
if (location && resourceGroup) {
|
||||
virtualMachines.forEach((virtualMachine) => {
|
||||
if (virtualMachine.location.toLowerCase() === location.name.toLowerCase() && azure.getResourceGroupFromId(virtualMachine.id).toLowerCase() === resourceGroup.name.toLowerCase()) {
|
||||
let virtualMachineValue: CategoryValue;
|
||||
if (virtualMachine.properties.provisioningState === ProvisioningState.Succeeded) {
|
||||
virtualMachineValue = {
|
||||
name: virtualMachine.id,
|
||||
displayName: virtualMachine.name
|
||||
};
|
||||
} else {
|
||||
virtualMachineValue = {
|
||||
name: virtualMachine.id,
|
||||
displayName: constants.UNAVAILABLE_TARGET_PREFIX(virtualMachine.name)
|
||||
};
|
||||
}
|
||||
virtualMachineValues.push(virtualMachineValue);
|
||||
virtualMachineValues.push({
|
||||
name: virtualMachine.id,
|
||||
displayName: virtualMachine.name
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user