Skip to content

Commit

Permalink
Update crates/orchestrator/src/network_spec/node.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Loris Moulin <[email protected]>
  • Loading branch information
pepoviola and l0r1s authored Sep 27, 2023
1 parent 545d2ac commit bc89de2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/orchestrator/src/network_spec/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ impl NodeSpec {
chain_context: &ChainDefaultContext,
) -> Result<Self, OrchestratorError> {
// Check first if the image is set at node level, then try with the default
let image = if let Some(img) = node_config.image() {
Some(img.clone())
} else {
chain_context.default_image.cloned()
};
let image = node_config.image().or(chain_context.default_image).cloned();

// Check first if the command is set at node level, then try with the default
let command = if let Some(cmd) = node_config.command() {
Expand Down

0 comments on commit bc89de2

Please sign in to comment.