Skip to content

Commit 19f0f7c

Browse files
author
Xiaoli Chan
committed
[wmi] self review: wrong removed
Signed-off-by: Xiaoli Chan <[email protected]>
1 parent bb607bb commit 19f0f7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cme/protocols/wmi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ def enum_host_info(self):
155155

156156
if self.args.local_auth:
157157
self.domain = self.hostname
158-
if self.args.domain:__dcom
158+
if self.args.domain:
159+
self.domain = self.args.domain
160+
self.fqdn = f"{self.hostname}.{self.domain}"
161+
159162
self.logger.extra["hostname"] = self.hostname
160163

161164
self.output_filename = os.path.expanduser(f"~/.cme/logs/{self.hostname}_{self.host}_{datetime.now().strftime('%Y-%m-%d_%H%M%S')}".replace(":", "-"))

0 commit comments

Comments
 (0)