Repository: qpid-dispatch Updated Branches: refs/heads/master 724600022 -> 07acd8e1b
DISPATCH-155 - Additional fix. Don't show None in the listener or connector name Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/07acd8e1 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/07acd8e1 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/07acd8e1 Branch: refs/heads/master Commit: 07acd8e1ba0eab421f1be7528891d49c73af2975 Parents: 7246000 Author: Ganesh Murthy <[email protected]> Authored: Tue May 31 14:05:44 2016 -0400 Committer: Ganesh Murthy <[email protected]> Committed: Tue May 31 14:05:44 2016 -0400 ---------------------------------------------------------------------- python/qpid_dispatch_internal/management/agent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/07acd8e1/python/qpid_dispatch_internal/management/agent.py ---------------------------------------------------------------------- diff --git a/python/qpid_dispatch_internal/management/agent.py b/python/qpid_dispatch_internal/management/agent.py index 4197b0c..8fd4e84 100644 --- a/python/qpid_dispatch_internal/management/agent.py +++ b/python/qpid_dispatch_internal/management/agent.py @@ -329,7 +329,11 @@ def _host_port_name_identifier(entity): for attr in ['host', 'port', 'name']: # Set default values if need be entity.attributes.setdefault( attr, entity.entity_type.attribute(attr).missing_value()) - return "%s:%s:%s" % (entity.attributes['host'], entity.attributes['port'], entity.attributes['name']) + + if entity.attributes.get('name'): + return "%s:%s:%s" % (entity.attributes['host'], entity.attributes['port'], entity.attributes['name']) + else: + return "%s:%s" % (entity.attributes['host'], entity.attributes['port']) class ListenerEntity(EntityAdapter): --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
