[wmi] self review: wrong removed

Signed-off-by: Xiaoli Chan <2209553467@qq.com>
main
Xiaoli Chan 2023-08-30 09:23:12 +08:00
parent bb607bb0da
commit 19f0f7cfe2
1 changed files with 4 additions and 1 deletions

View File

@ -155,7 +155,10 @@ class wmi(connection):
if self.args.local_auth:
self.domain = self.hostname
if self.args.domain:__dcom
if self.args.domain:
self.domain = self.args.domain
self.fqdn = f"{self.hostname}.{self.domain}"
self.logger.extra["hostname"] = self.hostname
self.output_filename = os.path.expanduser(f"~/.cme/logs/{self.hostname}_{self.host}_{datetime.now().strftime('%Y-%m-%d_%H%M%S')}".replace(":", "-"))