Skip to content

Commit 1e0fd8c

Browse files
ianm-nvNathanChenNVIDIA
authored andcommitted
NVIDIA: SAUCE: virtinst: Fix CCA launchSecurity property name mappings
The second argument to add_arg() should be the Python property name, not the CLI argument name. This was causing errors when trying to use CCA-specific properties. Before this fix: --launchSecurity type=cca,measurementLog=on ERROR: obj=<DomainLaunchSecurity> does not have member=measurement-log Signed-off-by: Ian May <ianm@nvidia.com>
1 parent 99f918d commit 1e0fd8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

virtinst/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5330,9 +5330,9 @@ def _virtcli_class_init(cls):
53305330
cls.add_arg("mrOwnerConfig", "mrOwnerConfig")
53315331
cls.add_arg("quoteGenerationService", "quoteGenerationService", is_onoff=True)
53325332
cls.add_arg("quoteGenerationSocket", "quoteGenerationSocket")
5333-
cls.add_arg("measurementAlgo", "measurement-algo")
5334-
cls.add_arg("personalizationValue", "personalization-value")
5335-
cls.add_arg("measurementLog", "measurement-log", is_onoff=True)
5333+
cls.add_arg("measurementAlgo", "measurementAlgo")
5334+
cls.add_arg("personalizationValue", "personalizationValue")
5335+
cls.add_arg("measurementLog", "measurementLog", is_onoff=True)
53365336

53375337

53385338
###########################

0 commit comments

Comments
 (0)