openbmc / phosphor-inventory-manager

Apache License 2.0
8 stars 9 forks source link

How to use an enum inside an initial inventory yaml file ? #7

Closed frsauvage closed 2 years ago

frsauvage commented 2 years ago

Hi, I declared an enum in xxx.interface.yaml file.

=> I was not able to use it inside a yaml file, the once initially loaded.

I tried:

: MyEnum: value: xyz.open_project.Inventory.MyClass.MyEnum.MyChoice type: xyz.open_project.Inventory.MyClass.MyEnum or type: enum[xyz.open_project.Inventory.MyClass.MyEnum] or type: string nothing compile => any idea ? I would appreciate any help, Best Regards, Francine
spinler commented 2 years ago

Something like this? https://github.com/openbmc/openbmc/blob/master/meta-ibm/recipes-phosphor/inventory/inventory-cleanup/witherspoon/inventory-cleanup.yaml#L50

frsauvage commented 2 years ago

Thank a lot, @spinler, I missed it !