Skip to content

Commit

Permalink
Fix virtual-machine.vm-type → virtual-machine.type
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Mar 11, 2023
1 parent a08caae commit 54ce4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rancher-desktop/main/commandServer/settingsValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default class SettingsValidator {
protected checkRosetta(mergedSettings: Settings, currentValue: boolean, desiredValue: boolean, errors: string[], fqname: string): boolean {
if (desiredValue) {
if (mergedSettings.experimental.virtualMachine.type !== VMType.VZ) {
errors.push(`Setting ${ fqname } can only be enabled when experimental.virtual-machine.vm-type is "${ VMType.VZ }".`);
errors.push(`Setting ${ fqname } can only be enabled when experimental.virtual-machine.type is "${ VMType.VZ }".`);

return false;
}
Expand All @@ -299,7 +299,7 @@ export default class SettingsValidator {

protected checkMountType(mergedSettings: Settings, currentValue: string, desiredValue: string, errors: string[], fqname: string): boolean {
if (desiredValue === MountType.VIRTIOFS && mergedSettings.experimental.virtualMachine.type !== VMType.VZ) {
errors.push(`Setting ${ fqname } to "${ MountType.VIRTIOFS }" requires that experimental.virtual-machine.vm-type is "${ VMType.VZ }".`);
errors.push(`Setting ${ fqname } to "${ MountType.VIRTIOFS }" requires that experimental.virtual-machine.type is "${ VMType.VZ }".`);

return false;
}
Expand Down

0 comments on commit 54ce4fa

Please sign in to comment.