Skip to content

Commit dc281ef

Browse files
authored
Merge pull request #740 from ystia/bugfix/GH-739-slurm-execution-option
Bugfix/gh 739 slurm execution option
2 parents 8d7a40d + 1d0480e commit dc281ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### BUG FIXES
1010

11+
* Error submitting a SLURM job with no execution option ([GH-739](https://github.com/ystia/yorc/issues/739))
1112
* Workflow with asynchronous action never stops after another step failure ([GH-733](https://github.com/ystia/yorc/issues/733))
1213

1314
## 4.2.0-milestone.1 (May 06, 2021)

prov/slurm/execution.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func (e *executionCommon) buildJobInfo(ctx context.Context) error {
380380
if err != nil {
381381
return err
382382
}
383-
if eo != nil && eo.Value != nil {
383+
if eo != nil && eo.RawString() != "" {
384384
err = mapstructure.Decode(eo.Value, &e.jobInfo.ExecutionOptions)
385385
if err != nil {
386386
return errors.Wrapf(err, `invalid execution options datatype for attribute "execution_options" for node %q`, e.NodeName)

0 commit comments

Comments
 (0)