Mentions légales du service

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

[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
......@@ -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
......
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