# Protecting variables in context

**URL:** <https://forum.opennebula.io/t/protecting-variables-in-context/2370>\
**Category:** Product Support\
**Created:** [June 9, 2016, 2:00pm UTC](https://forum.opennebula.io/t/protecting-variables-in-context/2370 "2016-06-09T14:00:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dad/32/8466_2.png) [@DaD](https://forum.opennebula.io/u/DaD)\
**Post date:** [June 9, 2016, 2:00pm UTC](https://forum.opennebula.io/t/protecting-variables-in-context/2370/1 "2016-06-09T14:00:24Z")

</div>

Hello,

I just tried to create custom context attribute `foo` with the value `$UNAME_foo`, but in shell scripts, I must delimit the variable with `${UNAME}_foo`.

Unfortunately, doing so in Sunstone result in a parse error of my template, and `$UNAME_foo` results in the `foo` attribute` not present in context.

Should I open a bug report or is there a way to achieve my goal?

Regards.

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [June 9, 2016, 2:15pm UTC](https://forum.opennebula.io/t/protecting-variables-in-context/2370/2 "2016-06-09T14:15:58Z")

</div>

Please! do so 🙂
