should this be 
```ruby
"hostgroup_fullname = #{host.hostgroup.label}"
```