Skip to content

Commit a6fe9bc

Browse files
committed
fix(tenant): create tenant_type_info
Signed-off-by: Chris Snow <[email protected]>
1 parent fbb1ec4 commit a6fe9bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hpecp/tenant.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def create(
160160
"tenant_type": tenant_type,
161161
"member_key_available": "all_admins",
162162
"k8s_cluster": k8s_cluster_id,
163+
"tenant_type_info": {},
163164
}
164165
if description is not None:
165166
data["label"]["description"] = description
@@ -181,6 +182,9 @@ def create(
181182
"adopt_existing_namespace"
182183
] = adopt_existing_namespace
183184

185+
if data["tenant_type_info"] == {}:
186+
data.pop("tenant_type_info", None)
187+
184188
response = self.client._request(
185189
url="/api/v1/tenant",
186190
http_method="post",

0 commit comments

Comments
 (0)