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
88948cc8
Commit
88948cc8
authored
4 years ago
by
Simon Delamare
Browse files
Options
Downloads
Patches
Plain Diff
[lib] kwollect : fix when directory to backup does not exist
parent
373428e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/refrepo/gen/puppet/kwollectg5k.rb
+3
-1
3 additions, 1 deletion
lib/refrepo/gen/puppet/kwollectg5k.rb
with
3 additions
and
1 deletion
lib/refrepo/gen/puppet/kwollectg5k.rb
+
3
−
1
View file @
88948cc8
...
@@ -27,7 +27,9 @@ def generate_puppet_kwollectg5k(options)
...
@@ -27,7 +27,9 @@ def generate_puppet_kwollectg5k(options)
next
unless
options
[
:sites
].
include?
(
site_uid
)
next
unless
options
[
:sites
].
include?
(
site_uid
)
FileUtils
.
mv
(
"
#{
options
[
:output_dir
]
}
//platforms/production/modules/generated/files/grid5000/kwollect/
#{
site_uid
}
"
,
"
#{
backup_dir
}
/"
)
if
File
.
directory?
(
"
#{
options
[
:output_dir
]
}
//platforms/production/modules/generated/files/grid5000/kwollect/
#{
site_uid
}
"
)
FileUtils
.
mv
(
"
#{
options
[
:output_dir
]
}
//platforms/production/modules/generated/files/grid5000/kwollect/
#{
site_uid
}
"
,
"
#{
backup_dir
}
/"
)
end
# Metrics configuration for each node
# Metrics configuration for each node
site
[
'clusters'
].
sort
.
each
{
|
cluster_uid
,
cluster
|
site
[
'clusters'
].
sort
.
each
{
|
cluster_uid
,
cluster
|
...
...
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