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
No related branches found
No related tags found
1 merge request!104Exotic
......@@ -244,6 +244,8 @@ def generate_reference_api
# Add default keys
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')
# Delete keys
......
......@@ -2,6 +2,7 @@
nodes: required_hash
model: string
created_at: required # string or date ?
exotic: optional_boolean
kavlan: boolean
queues: array
priority: optional_string
......
......@@ -20,6 +20,7 @@ chassis:
manufacturer: string
name: string
serial: optional # required # string ?
exotic: optional_boolean
gpu_devices: optional_hash
kavlan:
<multi>:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment