Skip to content

Commit 2c349c6

Browse files
fix bugs found in QA, bump version, and pin click version
1 parent e95a3c6 commit 2c349c6

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The intended audience of this file is for `incydr` SDK and CLI consumers -- as such, changes that don't affect
99
how a consumer would use the library or CLI tool (e.g. adding unit tests, updating documentation, etc) are not captured
1010
here.
11-
## Unreleased
11+
## 2.5.0 - 2025-06-06
1212

1313
### Added
1414

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies = [
3535
dynamic = ["version"]
3636

3737
[project.optional-dependencies]
38-
cli = ["click", "chardet"]
38+
cli = ["click==8.1.*", "chardet"]
3939

4040
[project.urls]
4141
Documentation = "https://github.com/code42/incydr_python#readme"

src/_incydr_sdk/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2022-present Code42 Software <integrations@code42.com>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "2.4.0"
4+
__version__ = "2.5.0"

src/_incydr_sdk/orgs/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ def create(
7575
pa
7676
**Returns**: An [`Org`][org-model] object representing the created org.
7777
"""
78+
# Ensure parent org guid
79+
if not parent_org_guid:
80+
orgslist = self.list().orgs
81+
id_list = list(map(lambda x: x.org_guid, orgslist))
82+
for org in orgslist:
83+
if org.parent_org_guid not in id_list:
84+
parent_org_guid = org.org_guid
85+
break
7886
payload = {
7987
"orgName": org_name,
8088
"orgExtRef": org_ext_ref,

0 commit comments

Comments
 (0)