<div>Why do some "rabbitmqctl cluster_status" outputs have single quote around the nodes, others do not?</div><div><br></div><div>For example, </div><div><div><i>[root@jbao-vm1 ~]# rabbitmqctl cluster_status</i></div>
<div><i>Cluster status of node 'rabbit@jbao-vm1' ...</i></div><div><i>[{nodes,[{disc,['rabbit@jbao-vm2','rabbit@jbao-vm1']}]},</i></div><div><i> {running_nodes,['rabbit@jbao-vm2',</i></div>
<div><i> 'rabbit@jbao-vm1']}]</i></div><div><i>...done.</i></div></div><div><i><br></i></div><div>On another cluster, I have somthing like this:</div><div><pre class="">rabbit1$ <i>rabbitmqctl cluster_status</i>
Cluster status of node rabbit@rabbit1 ...
[{nodes,[{disc,[rabbit@rabbit1,rabbit@rabbit2]},{ram,[rabbit@rabbit3]}]},
{running_nodes,[rabbit@rabbit2,rabbit@rabbit1]}]
...done.</pre></div><div>They are same version of RabbitMQ/Erlang/OTP, all on the same CentOS 5.7 64bit.</div><div><br></div>I am trying to write a script to parse it so I can monitor the status of the cluster. I have been working with RabbitMQ for a while but am relatively new to Erlang. Does anybody know why? Is this a Erlang or OS locale issue? <div>
<br></div><div>I know I can write my parser to handle both cases but just want to know what is causing that.<div><br></div><div>Thanks,</div><div><br></div><div>Jerry<br><div><br></div><div><br></div></div></div>