Skip to content

Commit

Permalink
fix(Cluster):updated slrum version
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Oct 16, 2024
1 parent 373af93 commit e6c80db
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions portal_client.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ struct Image{

/** Title of the image */
13:optional string title

14:optional string slurm_version
}
/**
* This Struct defines a VirtualMachine.
Expand Down
27 changes: 27 additions & 0 deletions simple_vm_client/ttypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions simple_vm_client/util/thrift_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def os_to_thrift_image(openstack_image: OpenStack_Image) -> Image:
if not properties:
properties = {}
image_type = properties.get("image_type", "image")
slurm_version = properties.get("slurm_version", "")
image = Image(
name=openstack_image.name,
min_disk=openstack_image.min_disk,
Expand All @@ -27,6 +28,7 @@ def os_to_thrift_image(openstack_image: OpenStack_Image) -> Image:
updated_at=openstack_image.updated_at,
os_version=openstack_image.get("os_version", ""),
os_distro=openstack_image.get("os_distro", ""),
slurm_version=openstack_image.get("slurm_version", slurm_version),
title=properties.get("title", ""),
openstack_id=openstack_image.id,
description=properties.get("description", ""),
Expand Down

0 comments on commit e6c80db

Please sign in to comment.