Skip to content

Instantly share code, notes, and snippets.

@olehermanse
Created October 3, 2022 11:27
Show Gist options
  • Save olehermanse/71f14119a690b050f91befd020496073 to your computer and use it in GitHub Desktop.
Save olehermanse/71f14119a690b050f91befd020496073 to your computer and use it in GitHub Desktop.
Using variables in class guards
bundle agent __main__
{
vars:
"mycontext"
string => "ubuntu";
reports:
"$(mycontext)"::
"Hello, $(mycontext) (based on variable)";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment