Skip to content

Commit

Permalink
Fix module's error message
Browse files Browse the repository at this point in the history
Before this change the error message is always :

```
msg: 'err : { err } ; out : { out }'
```

After this change the real command output is printed !
  • Loading branch information
Maxime Loliée committed Oct 3, 2023
1 parent 0b4e33d commit 0154e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goss.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def run_module():
write_result(output_file_path, out)

if rc is not None and rc != 0:
error_msg = 'err : { err } ; out : { out }'
error_msg = f'err : { err } ; out : { out }'
module.fail_json(msg=error_msg)

module.exit_json(stdout=out, changed=False)
Expand Down

0 comments on commit 0154e66

Please sign in to comment.