Skip to content

Commit 9982de9

Browse files
authored
Merge pull request #952 from EmmanuelBRELLE/fix_uidatabase_report
Fixed hostname retrieval when filling JSON metadata
2 parents 9319b3f + 36c46fb commit 9982de9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pylib/Stages/Reporter/IUDatabase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ def execute(self, log, keyvals, testDef):
141141

142142
data = {}
143143

144-
profile = testDef.logger.getLog('Profile:Installed')
145144
metadata = {}
146145
if not self.cmds['dryrun']:
147146
metadata['client_serial'] = client_serial
148-
metadata['hostname'] = "\n".join(profile['profile']['nodeName'])
147+
metadata['hostname'] = self._extract_param(testDef.logger, 'Profile:Installed','nodeName')
149148
metadata['http_username'] = self.cmds['username']
150149
metadata['local_username'] = pwd.getpwuid(os.getuid()).pw_name
151150
metadata['mtt_client_version'] = '4.0a1'

0 commit comments

Comments
 (0)