From 2b33715b66410d23bde06740784a098f0cf5faad Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Tue, 25 Nov 2014 12:02:19 -0600 Subject: [PATCH] Make CALLBACK_CONSUMER_PORT falsy values be dummified. --- awx/main/socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/socket.py b/awx/main/socket.py index 66ff5c66ec..862fbe0ee8 100644 --- a/awx/main/socket.py +++ b/awx/main/socket.py @@ -85,7 +85,7 @@ class Socket(object): # If the port is None, then this is an intentional dummy; # honor this. (For testing.) - if port is None: + if not port: return # Okay, create the connection.