Skip to content

Commit

Permalink
fix: create instance from custom iso
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Hu <mason.hu@canonical.com>
  • Loading branch information
mas-who committed Mar 13, 2024
1 parent a7743e0 commit 43371d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/instances/CreateInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ const CreateInstance: FC = () => {
}
void formik.setFieldValue("devices", devices);

if (type) {
void formik.setFieldValue("instanceType", type);
} else if (isVmOnlyImage(image)) {
if (isVmOnlyImage(image)) {
void formik.setFieldValue("instanceType", "virtual-machine");
} else if (isContainerOnlyImage(image)) {
void formik.setFieldValue("instanceType", "container");
} else if (type) {
void formik.setFieldValue("instanceType", type);
}
};

Expand Down

0 comments on commit 43371d2

Please sign in to comment.