Add derived env vars for target hostname and fqdn.
This commit is contained in:
parent
9ce8f6bbb0
commit
dbcc94ab65
23 changed files with 181 additions and 59 deletions
|
|
@ -65,6 +65,8 @@ class Emulator(object):
|
|||
try:
|
||||
self.global_path = self.env['__global']
|
||||
self.target_host = self.env['__target_host']
|
||||
self.target_hostname = self.env['__target_hostname']
|
||||
self.target_fqdn = self.env['__target_fqdn']
|
||||
|
||||
# Internal variables
|
||||
self.object_source = self.env['__cdist_manifest']
|
||||
|
|
@ -101,7 +103,7 @@ class Emulator(object):
|
|||
else:
|
||||
logging.root.setLevel(logging.INFO)
|
||||
|
||||
self.log = logging.getLogger(self.target_host)
|
||||
self.log = logging.getLogger(self.target_host[0])
|
||||
|
||||
def commandline(self):
|
||||
"""Parse command line"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue