diff --git a/CHANGELOG.md b/CHANGELOG.md index f8d61d5ef..6ef9decce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,10 @@ ### BUG FIXES * Over-consumption of Consul connections ([GH-745](https://github.com/ystia/yorc/issues/745)) +* Error submitting a SLURM job with no execution option ([GH-739](https://github.com/ystia/yorc/issues/739)) ## 4.1.1 (May 06, 2021) -### ENHANCEMENTS - -* Support Alien4Cloud 3.2.0 ([GH-723](https://github.com/ystia/yorc/issues/723)) - ### BUG FIXES * Can't bootstrap Yorc as BinTray is now unavailable ([GH-727](https://github.com/ystia/yorc/issues/727)) diff --git a/prov/slurm/execution.go b/prov/slurm/execution.go index 35b824662..236cb8b92 100644 --- a/prov/slurm/execution.go +++ b/prov/slurm/execution.go @@ -380,7 +380,7 @@ func (e *executionCommon) buildJobInfo(ctx context.Context) error { if err != nil { return err } - if eo != nil && eo.Value != nil { + if eo != nil && eo.RawString() != "" { err = mapstructure.Decode(eo.Value, &e.jobInfo.ExecutionOptions) if err != nil { return errors.Wrapf(err, `invalid execution options datatype for attribute "execution_options" for node %q`, e.NodeName)