Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
dd1a4667
Commit
dd1a4667
authored
Mar 11, 2020
by
BERARD Benjamin
Committed by
RINGOT Patrice
Mar 12, 2020
Browse files
Remove only driver in wiki_generator
parent
3cab9b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/refrepo/gen/wiki/generators/site_hardware.rb
View file @
dd1a4667
...
...
@@ -236,7 +236,6 @@ def get_hardware(sites)
'interface'
=>
v
[
'interface'
],
'vendor'
=>
v
[
'vendor'
],
'model'
=>
v
[
'model'
],
'driver'
=>
v
[
'driver'
],
'path'
=>
v
[
'by_path'
]
||
v
[
'by_id'
],
'count'
=>
node_hash
[
'storage_devices'
].
count
,
'reservation'
=>
v
[
'reservation'
].
nil?
?
false
:
v
[
'reservation'
]
...
...
@@ -251,7 +250,7 @@ def get_hardware(sites)
e
[
'interface'
],
e
[
'vendor'
],
e
[
'model'
],
' (
driver: '
+
(
e
[
'driver'
]
||
'MISSING'
)
+
',
path: '
+
(
e
[
'path'
]
||
'MISSING'
)
+
')'
,
' (path: '
+
(
e
[
'path'
]
||
'MISSING'
)
+
')'
,
e
[
'reservation'
]
?
'[[Disk_reservation|(reservable)]]'
:
''
,
e
[
'device'
]
==
'sda'
?
'(primary disk)'
:
''
].
join
(
' '
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment