Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
reference-repository
Commits
23c380e7
Commit
23c380e7
authored
4 years ago
by
PHILIPPOT Sebastien
Browse files
Options
Downloads
Patches
Plain Diff
[lib] add a check for command nodeset required by rake gen:wiki and version:get
parent
d0872d0b
No related branches found
No related tags found
No related merge requests found
Pipeline
#159190
passed
4 years ago
Stage: validate
Stage: generate
Stage: deploy
Stage: .post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/refrepo/firmwares.rb
+2
-0
2 additions, 0 deletions
lib/refrepo/firmwares.rb
lib/refrepo/valid/network.rb
+2
-0
2 additions, 0 deletions
lib/refrepo/valid/network.rb
with
4 additions
and
0 deletions
lib/refrepo/firmwares.rb
+
2
−
0
View file @
23c380e7
...
...
@@ -54,6 +54,8 @@ def gen_firmwares_tables
end
end
end
system
(
"which nodeset > /dev/null"
)
or
raise
"WARNING: command nodeset absent, please install clustershell"
nodesets
=
nodes
.
group_by
{
|
e
|
e
.
except
(
'address'
)
}.
map
do
|
e
|
e
[
1
]
=
e
[
1
].
map
{
|
f
|
f
[
'address'
]
}
nodes
=
`echo
#{
e
[
1
].
join
(
','
)
}
| nodeset -f`
.
chomp
...
...
This diff is collapsed.
Click to expand it.
lib/refrepo/valid/network.rb
+
2
−
0
View file @
23c380e7
...
...
@@ -318,6 +318,8 @@ def generate_dot(netnodes, links, site)
# group
nodeslinks
=
nodeslinks
.
group_by
{
|
l
|
[
l
[
'target_cluster'
],
l
[
'attachments'
]
]
}.
to_a
.
map
{
|
e
|
e
[
1
].
map!
{
|
f
|
f
[
'target_node'
]
}
;
e
}
# factor
system
(
"which nodeset > /dev/null"
)
or
raise
"WARNING: command nodeset absent, please install clustershell"
nodeslinks
.
map!
{
|
e
|
e
[
1
]
=
sh
(
"echo
#{
e
[
1
].
uniq
.
join
(
' '
)
}
|nodeset -f"
);
e
}
header
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment