Skip to content

Commit

Permalink
Merge pull request #1058 from soc-dstny/main
Browse files Browse the repository at this point in the history
resolving error json to params
  • Loading branch information
squioc authored Aug 1, 2024
2 parents fa88002 + 3407deb commit a25955a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions HarfangLab/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 2024-08-01 - 1.23.1

### Fixed

- IP are now taken from the `ip` field and put in the `ip` field of the getter.


## 2024-07-26 - 1.23.0

### Changed
Expand Down
2 changes: 1 addition & 1 deletion HarfangLab/harfanglab/get_hostnames_by_ip_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def run(self, arguments) -> dict:
job_url = f"{instance_url}/api/data/endpoint/Agent/"
params: dict = {"ipaddress": target_ip}

response = requests.get(url=job_url, json=params, headers={"Authorization": f"Token {api_token}"})
response = requests.get(url=job_url, params=params, headers={"Authorization": f"Token {api_token}"})
response.raise_for_status()

data = response.json()
Expand Down
2 changes: 1 addition & 1 deletion HarfangLab/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"name": "HarfangLab",
"uuid": "8380240b-61a4-48b7-93e4-044a7ee2309b",
"slug": "harfanglab",
"version": "1.23.0"
"version": "1.23.1"
}

0 comments on commit a25955a

Please sign in to comment.