mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 20:50:06 -03:30
Make CALLBACK_CONSUMER_PORT falsy values be dummified.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user