Skip to content

Commit 0f3a159

Browse files
authored
Merge pull request Dstack-TEE#222 from Dstack-TEE/fix-vmm-cli-set-key-provider-id
fix(vmm-cli): unmatched app_compose when no key provider id.
2 parents 910c0ae + edaa9ca commit 0f3a159

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vmm/src/vmm-cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,15 @@ def create_app_compose(self,
418418
kms_enabled: bool,
419419
gateway_enabled: bool,
420420
local_key_provider_enabled: bool,
421-
key_provider_id: str,
421+
key_provider_id: str | None,
422422
public_logs: bool,
423423
public_sysinfo: bool,
424424
envs: Optional[Dict],
425425
no_instance_id: bool,
426426
output: str,
427427
) -> None:
428428
"""Create a new app compose file"""
429+
envs = envs or {}
429430
app_compose = {
430431
"manifest_version": 2,
431432
"name": name,
@@ -434,7 +435,7 @@ def create_app_compose(self,
434435
"kms_enabled": kms_enabled,
435436
"gateway_enabled": gateway_enabled,
436437
"local_key_provider_enabled": local_key_provider_enabled,
437-
"key_provider_id": key_provider_id,
438+
"key_provider_id": key_provider_id or "",
438439
"public_logs": public_logs,
439440
"public_sysinfo": public_sysinfo,
440441
"allowed_envs": [k for k in envs.keys()],

0 commit comments

Comments
 (0)