Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(vm): do not send the rootsize parameter to the vm creation request (
Browse files Browse the repository at this point in the history
  • Loading branch information
tamazlykar authored and HeyRoach committed Aug 6, 2018
1 parent 53f5b81 commit fc070a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/app/reducers/vm/redux/vm-creation.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ export class VirtualMachineCreationEffects {
}

if (action.payload.template) {
if (action.payload.template.resourceType === TemplateResourceType.template) {
const rootDiskSize = Utils.convertToGb(action.payload.template.size);
return new vmActions.VmFormUpdate({ rootDiskSize });
} else if (!vmCreationState.diskOffering) {
if (action.payload.template.resourceType !== TemplateResourceType.template && !vmCreationState.diskOffering) {
return new vmActions.VmFormUpdate({ diskOffering: diskOfferings[0] });
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/reducers/vm/redux/vm.reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export const initialFormState: FormState = {
doStartVm: true,
instanceGroup: null,
keyboard: KeyboardLayout.us,
rootDiskSize: 0,
rootDiskSize: null,
rootDiskMinSize: 0,
securityGroupData: VmCreationSecurityGroupData.fromRules(new Rules()),
serviceOffering: null,
Expand Down

0 comments on commit fc070a9

Please sign in to comment.