Skip to content

Commit

Permalink
Merge pull request #145 from SEKOIA-IO/fix/Littlefixes
Browse files Browse the repository at this point in the history
Some little fixes
  • Loading branch information
squioc authored Oct 30, 2024
2 parents b710358 + 92c5ed9 commit c0e525a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Specify docker image when publishing a module
- Move from error to info the message when no event was collected from severals seconds

### Fixed

- Replace ulrllib.parse.urljoin by posixpath.join in AsyncConnector
- Fix tests for async version of connector.
- Fix support for boolean arguments in the json_argument method

## 1.16.0 - 2024-10-16

Expand Down
2 changes: 1 addition & 1 deletion sekoia_automation/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def json_argument(self, name: str, arguments: dict, required: bool = True) -> An
If `name` is inside arguments, returns the value.
If `name`_path is inside arguments, returns the content of the file
"""
if arguments.get(name, None):
if arguments.get(name, None) is not None:
self._result_as_file = False
return arguments[name]
elif f"{name}_path" in arguments:
Expand Down
2 changes: 1 addition & 1 deletion sekoia_automation/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def _events_alive(self) -> bool:
self.log(
message=f"The trigger didn't send events for {delta_seconds} seconds, "
"it will be restarted.",
level="error",
level="info",
)
return False

Expand Down

0 comments on commit c0e525a

Please sign in to comment.