Skip to content

Commit

Permalink
Checking TOSCA value RawString() to see if property execution_options…
Browse files Browse the repository at this point in the history
… is defined
  • Loading branch information
laurentganne committed May 25, 2021
1 parent 8d7a40d commit 9796b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prov/slurm/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9796b4f

Please sign in to comment.