mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Added fix for "host:port" shortcuts in INI format definitions.
This commit is contained in:
@@ -134,6 +134,9 @@ class MemHost(object):
|
|||||||
class BaseLoader(object):
|
class BaseLoader(object):
|
||||||
|
|
||||||
def get_host(self, name):
|
def get_host(self, name):
|
||||||
|
if ":" in name:
|
||||||
|
tokens = name.split(":")
|
||||||
|
name = tokens[0]
|
||||||
global host_names
|
global host_names
|
||||||
host = None
|
host = None
|
||||||
if not name in host_names:
|
if not name in host_names:
|
||||||
|
|||||||
Reference in New Issue
Block a user