We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 848da44 + b35e195 commit f5dc9eaCopy full SHA for f5dc9ea
1 file changed
nxc/helpers/pfx.py
@@ -503,7 +503,8 @@ def pfx_auth(self):
503
return None
504
505
username = self.args.username[0]
506
- log_ccache = os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}_{datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')}-{username}.ccache".replace(":", "-"))
+ timestamp = datetime.datetime.now().strftime("%Y-%m-%d_%H%M%S").replace(":", "-")
507
+ log_ccache = os.path.normpath(os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}_{timestamp}-{username}.ccache"))
508
509
# Request a TGT with the cert data
510
req = ini.build_asreq(self.domain, username)
0 commit comments