sensu / sensu-admin

An admin webui for Sensu
MIT License
86 stars 50 forks source link

undefined method `primary_role' #36

Closed organicveggie closed 11 years ago

organicveggie commented 11 years ago

CentOS 6.3, RVM, Ruby 1.9.3 and Rails 3.2.8. Launched and clicked "Clients":

undefined method `primary_role' for #<Client:0x00000002d29a18>

Extracted source (around line #32):

29:         %td.subpopover{'data-content' => client.subscriptions.join(', ')}
30:           = format_subscriptions(client.subscriptions)
31:           %i.icon-chevron-right
32:         %td.moreinfo= client.primary_role
33:         %td.moreinfo= time_ago_in_words(Time.at(client.timestamp))
34:         %td.moreinfo
35:           %i.icon-zoom-in
joshpasqualetto commented 11 years ago

Thanks for catching this, I just pushed a fix that should resolve this problem. If you get any other errors let me know.

Fixed in https://github.com/sensu/sensu-admin/pull/38

organicveggie commented 11 years ago

Thanks. Worked perfectly! I am finding a few more, but I'll open them as separate issues.