Fix target_host vars in Code.
This commit is contained in:
parent
c293a9b2ce
commit
9268062de5
2 changed files with 2 additions and 3 deletions
|
@ -285,6 +285,7 @@ class Config(object):
|
|||
host_fqdn = ''
|
||||
|
||||
target_host = (host, host_name, host_fqdn)
|
||||
log.debug("target_host: {}".format(target_host))
|
||||
|
||||
local = cdist.exec.local.Local(
|
||||
target_host=target_host,
|
||||
|
|
|
@ -100,9 +100,7 @@ class Code(object):
|
|||
"""
|
||||
# target_host is tuple (target_host, target_hostname, target_fqdn)
|
||||
def __init__(self, target_host, local, remote):
|
||||
self.target_host = target_host[0]
|
||||
self.target_hostname = target_host[1]
|
||||
self.target_fqdn = target_host[2]
|
||||
self.target_host = target_host
|
||||
self.local = local
|
||||
self.remote = remote
|
||||
self.env = {
|
||||
|
|
Loading…
Reference in a new issue