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|text|User data for 'cloud-config'" with an
O, but it did not work.