nutanix / calm-dsl

Keep Calm and DSL On!

Home Page:https://nutanix.github.io/calm-dsl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Service variable name not honored

pipoe2h opened this issue · comments

Describe the bug
A Service variable name is not honored when the attribute name is passed to the method.

Branch/Container
master

To Reproduce
Create an example service like the following:

class Provisioner(Service):
    KUBEADMIN_PASSWORD_BUG = CalmVariable.Simple.string("",name="kubeadmin_password")

Expected behavior
The name for the variable in the UI should be kubeadmin_password, but instead it is KUBEADMIN_PASSWORD_BUG.

Screenshots
image