Optional USER_INPUTS attributes

When custom attributes for a VM template are defined with USER_INPUTS, is there a way of making them optional?

I’m trying to let users specify optional cloud-init user data for my CoreOS image. I tried this in my VM template:

USER_INPUTS = [
    USER_DATA = "M|text|User data for `cloud-config`"
]
CONTEXT = [
  USER_DATA = "$USER_DATA"
]

If the user provides some cloud-init data, everything works fine. If the input field is left empty, however, Sunstone complains with a warning.

Is there a way of making that attribute non-mandatory? (I already tried replacing the M in "M|text|User data for 'cloud-config'" with an O, but it did not work.

The ‘M/O’ was a placeholder. I’m afraid there is no way to make the user inputs optional in 4.14.

We will however include optional user inputs in 5.0

We will however include optional user inputs in 5.0

Looking forward to it — thanks, Carlos!