I am trying to add a few customizations, and I am stuck with the lack of knowledge of how the arguments are passed from the lib/slurm_squeue_client.rb to the views/_node_status.erb.
I am adding a few more variables to the cluster (a.k.a. showqer) object in the slurm_squeue_client.rb, e.g.
…
nodes_other: sinfo_out[6].to_i,
…
self.nodes_other = cluster_info[:nodes_other]
…
And then adding the “nodes_other” = “offline” to the _node_status.erb
But when I run the app, I get error like:
NoMethodError at /pun/dev/osc-systemstatus/clusters
undefined method `friendly_error_message’ for nil:NilClass
though the friendly_error_message is defined in the cluster class.
Any thoughts on that? I was thinking perhaps there’s some formatting issue but looking at the slurm_squeue_client.rb I don’t see any.
Thanks,
MC