diff options
| author | David Wragg <dpw@lshift.net> | 2010-05-24 15:26:40 +0100 |
|---|---|---|
| committer | David Wragg <dpw@lshift.net> | 2010-05-24 15:26:40 +0100 |
| commit | 865ddf4538f5f35e430e301a02085d127a8cf1e1 (patch) | |
| tree | 3d6ae30ae6040aa36bd6752707deb2b6481b8770 /codegen.py | |
| parent | 8b18a7c75d1df0d0fa60d4c95688f5a69fd64628 (diff) | |
| download | rabbitmq-server-git-865ddf4538f5f35e430e301a02085d127a8cf1e1.tar.gz | |
Handle quoted node names by parsing with erl_scan:string
If the node name contains characters which cannot be used in a simple
Erlang atom (e.g. a hyphen), then pid_to_string will quote it;
e.g. <'rabbit@centos5-64'.51.0>. If in string_to_pid we try to
convert the node name part back to an atom with list_to_atom, the
quotes will be included in the resulting atom
(e.g. '\'rabbit@centos5-64\'') and so the two functions will not be
inverses. So use erl_scan to parse the node name instead, to recover
an atom that exactly matches the original.
Diffstat (limited to 'codegen.py')
0 files changed, 0 insertions, 0 deletions
