Mentions légales du service

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

Merge branch 'arch_in_api' into 'master'

[kaworkflow] fallback to default arch of the first node when using api and no arch specified

See merge request !34
parents 2fd046a4 080c2495
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 #454489 waiting for manual action
...@@ -243,7 +243,11 @@ module Kaworkflow ...@@ -243,7 +243,11 @@ module Kaworkflow
context.database, context.database,
env['name'], env['name'],
env['version'], 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'], env['user'],
context.user, context.user,
context.almighty_users context.almighty_users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment