Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 69e931d9 authored by Simon Delamare's avatar Simon Delamare
Browse files

[admin] Add support for value "shared" for "wattmeter" OAR property"

parent 216449b9
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ module Grid5000 ...@@ -48,7 +48,7 @@ module Grid5000
h['gpu_count'] = properties['gpu']['gpu_count'] h['gpu_count'] = properties['gpu']['gpu_count']
h['gpu_model'] = properties['gpu']['gpu_model'] h['gpu_model'] = properties['gpu']['gpu_model']
properties["monitoring"] ||= {} properties["monitoring"] ||= {}
h['wattmeter'] = properties['monitoring']['wattmeter'] ? "YES" : "NO" h['wattmeter'] = properties['monitoring']['wattmeter'] ? properties['monitoring']['wattmeter'].upcase == "SHARED" ? "SHARED" : "YES" : "NO"
h['rconsole'] = properties['monitoring']['rconsole'] == false ? "NO" : "YES" h['rconsole'] = properties['monitoring']['rconsole'] == false ? "NO" : "YES"
h h
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment