Open mtekel opened 7 years ago
@mtekel yup looks like a bug. should be instance group's name.
I'd guess NewEvaluationContext
should be receiving an Instance
and using Instance.JobName()
for Name
instead. Doesn't seem like this fix would be affected by CLI-related changes and could be safely PR'd to bosh-init and later merged to cli branch.
When you define
Then
<%= name %>
in erb template of the mypackage will bemypackage
instead ofmyjob
. For example in case of collectd, your VM will send metrics ascollectd
instead ofmyjob
. This is quite confusing, especially if you deploy multiple servers with bosh-init and they all end up with same name in their job configs...bosh-init versions 0.0.95 and 0.0.80 - both have this behaviour.