fix image checksum being stored as uuid
This commit is contained in:
@@ -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!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user