My solution was to over-ride the Environment select box and disable the 
inheritance. That seemed to work. 

On Saturday, July 9, 2016 at 1:56:13 PM UTC-7, Matthew Ceroni wrote:
>
> Is there a way to prevent the host from inheriting a host group value if 
> it is not set?
>
> I have written a small plugin that sets the environment based on the 
> hostname. However, if I then select the hostgroup it resets that 
> environment to blank because the hostgroup doesn't have a value. 
>
> I have tried everything via javascript to get around this. I set an 
> onsubmit function to set the environment (again based on hostname) but this 
> onsbumit function gets over-ridden (I think) when the hostgroup is 
> selected. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to