fix image checksum being stored as uuid

This commit is contained in:
2025-06-18 01:05:19 +09:30
parent 30796473c3
commit 08573ce742
6 changed files with 36 additions and 33 deletions
+10 -10
View File
@@ -16,17 +16,17 @@ def render_list():
os_version = st.text_input("OS Version (e.g., 20.04)")
checksum = st.text_input("Checksum (optional)")
submit = st.form_submit_button("Create Image")
payload = {
"name": name,
"location": location,
"location_type": location_type,
"size": size,
"os_family": os_family,
"os_version": os_version,
"checksum": checksum
}
if submit and name and location:
result = st.session_state.client.create_image(
name=name,
location=location,
location_type=location_type,
size=size,
os_family=os_family,
os_version=os_version,
checksum=checksum
)
result = st.session_state.client.create_image(payload)
if result:
st.success(f"Image '{name}' created successfully!")