Reference snippet other than by name? Renaming snippet breaks references

I'm running into the issue where someone wants to rename their snippet and
it breaks references to that snipped. Is there some way to reference by
UUID or some other method than by Snippet Name?

Renaming snippet breaks <%= snippet("this snippet") %>

Anybody?

> I'm running into the issue where someone wants to rename their snippet and
> it breaks references to that snipped. Is there some way to reference by
> UUID or some other method than by Snippet Name?
>
> Renaming snippet breaks <%= snippet("this snippet") %>

Unfortunately not, there is no other way, if you look at
lib/foreman/renderer.rb you can see we call where using the name only
Template.where(:name => name, :snippet => true)

Open an issue in Issues - Foreman if you would
like to keep track of it and possibly someone will take it up

··· On 06/16, lawre wrote:


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

Thanks, issue written up: Feature #10870: Reference snippet by something other than "name" - Foreman

I won't be heartbroken if this never gets implemented, but it's certainly a
nice-to-have.