Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix json arg fonction #92

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed

- Fix json_argument fonction when url arg is empty or None

## [1.6.1] - 2023-11-06

Expand Down
2 changes: 1 addition & 1 deletion sekoia_automation/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,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 name in arguments:
if arguments.get(name, None):
self._result_as_file = False
return arguments[name]
elif f"{name}_path" in arguments:
Expand Down
Loading