Merge pull request #493 from darko-poljak/fix_issue_492
Fix target_host vars in Code.
This commit is contained in:
		
				commit
				
					
						5f1d7cf76c
					
				
			
		
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue