Fix target_host vars in Code.

This commit is contained in:
Darko Poljak 2016-11-03 13:26:50 +01:00
parent c293a9b2ce
commit 9268062de5
2 changed files with 2 additions and 3 deletions

View File

@ -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,

View File

@ -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 = {