Same issue here. The string status to symbol map is embedded and cannot be accessed as data structure. Dict is handy for this situations.
```ruby
STATUS_MAP = Hash.
    new { |h, k| h.fetch k }. # will raise on unknown keys
    merge 'Pending Installation' => :pending_installation,
          'Alerts disabled'      => :alerts_disabled,
          'No reports'           => :no_reports,
          'Out of sync'          => :out_of_sync,
          'Error'                => :error,
          'Active'               => :active,
          'Pending'              => :pending,
          'No changes'           => :no_change

def host_status_id
  STATUS_MAP[host_status]
end
```