Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 385241ef authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen/wiki/site_hardware] do not show by_path for disk

With some HPE equipment, the by_path contains an unique id for each disk,
so the nodes from a cluster cannot be grouped in the site_hardware page.
This commit remove the by_path from this page.
The path based on id of the disk is still given and usable (eg: /dev/disk1), and
the by_path is still available from the API.
parent 01639ffb
No related branches found
No related tags found
No related merge requests found
Pipeline #979130 passed
......@@ -498,7 +498,7 @@ def get_hardware(sites)
e['interface'],
e['vendor'],
e['model'],
'(dev: <code class="file">/dev/' + e['id'] + '</code>' + (e['reservation'] ? '[[Disk_reservation|*]]' : '') + ', by-path: <code class="file">' + (e['path'] || 'MISSING') + '</code>)',
'(dev: <code class="file">/dev/' + e['id'] + '</code>' + (e['reservation'] ? '[[Disk_reservation|*]]' : '') + ')',
e['reservation'] ? '[[Disk_reservation|(reservable)]]' : '',
e['id'] == 'disk0' ? '(primary disk)' : ''
].join(' ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment