Skip to content

Commit 6c1f4d7

Browse files
committed
feat(tenant): ml_project
Signed-off-by: Chris Snow <[email protected]>
1 parent 54fec45 commit 6c1f4d7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hpecp/cli/tenant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def create(
6969
quota_cores=None,
7070
quota_disk=None,
7171
quota_tenant_storage=None,
72+
features=None,
7273
):
7374
"""Create a tenant.
7475
@@ -106,6 +107,7 @@ def create(
106107
quota_cores=quota_cores,
107108
quota_disk=quota_disk,
108109
quota_tenant_storage=quota_tenant_storage,
110+
features=features,
109111
)
110112
print(tenant_id)
111113

hpecp/tenant.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def create(
148148
quota_cores=None,
149149
quota_disk=None,
150150
quota_tenant_storage=None,
151+
features=None,
151152
):
152153

153154
assert (
@@ -188,6 +189,9 @@ def create(
188189
"adopt_existing_namespace"
189190
] = adopt_existing_namespace
190191

192+
if features is not None:
193+
data["features"] = features
194+
191195
if data["tenant_type_info"] == {}:
192196
data.pop("tenant_type_info", None)
193197

0 commit comments

Comments
 (0)