Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kadeploy
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
kadeploy
Commits
080c2495
Commit
080c2495
authored
3 years ago
by
Alexandre MERLIN
Browse files
Options
Downloads
Patches
Plain Diff
[kaworkflow] fallback to default arch of the first node when using api and no arch specified
parent
2fd046a4
No related branches found
No related tags found
1 merge request
!34
[kaworkflow] fallback to default arch of the first node when using api and no arch specified
Pipeline
#454479
passed
3 years ago
Stage: lint
Stage: test
Stage: deb
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/kadeploy3/server/kaworkflow.rb
+5
-1
5 additions, 1 deletion
lib/kadeploy3/server/kaworkflow.rb
with
5 additions
and
1 deletion
lib/kadeploy3/server/kaworkflow.rb
+
5
−
1
View file @
080c2495
...
...
@@ -243,7 +243,11 @@ module Kaworkflow
context
.
database
,
env
[
'name'
],
env
[
'version'
],
env
[
'arch'
],
# For requests from the CLI, arch is always set (by the user or by the CLI itself)
# at this point, but with the API it may not be the case, we fallback on the default
# arch of one of the node in such case. It should cover the case where all nodes are
# of the same default arch. For more complexe case, we need to specify the arch.
env
[
'arch'
]
||
context
.
config
.
clusters
[
context
.
nodes
.
set
.
first
.
cluster
].
default_arch
,
env
[
'user'
],
context
.
user
,
context
.
almighty_users
...
...
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