Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9ddafbb1 authored by LOUP David's avatar LOUP David Committed by LOUP David
Browse files

[lib/reference-api,valid/schema] Add 'exotic' field as an optional Boolean

parent 8592bbc7
Branches
No related tags found
1 merge request!104Exotic
...@@ -244,6 +244,8 @@ def generate_reference_api ...@@ -244,6 +244,8 @@ def generate_reference_api
# Add default keys # Add default keys
node["main_memory"] = {} unless node.key?("main_memory") node["main_memory"] = {} unless node.key?("main_memory")
node["exotic"] = cluster.key?('exotic') ? cluster['exotic'] : false unless node.key?('exotic')
node['supported_job_types']['queues'] = cluster['queues'] unless node['supported_job_types'].key?('queues') node['supported_job_types']['queues'] = cluster['queues'] unless node['supported_job_types'].key?('queues')
# Delete keys # Delete keys
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
nodes: required_hash nodes: required_hash
model: string model: string
created_at: required # string or date ? created_at: required # string or date ?
exotic: optional_boolean
kavlan: boolean kavlan: boolean
queues: array queues: array
priority: optional_string priority: optional_string
......
...@@ -20,6 +20,7 @@ chassis: ...@@ -20,6 +20,7 @@ chassis:
manufacturer: string manufacturer: string
name: string name: string
serial: optional # required # string ? serial: optional # required # string ?
exotic: optional_boolean
gpu_devices: optional_hash gpu_devices: optional_hash
kavlan: kavlan:
<multi>: <multi>:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment