summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-21 08:03:51 +0200
committerGitHub <noreply@github.com>2023-10-21 08:03:51 +0200
commit025eb1fc477469e07234d2e957e379ab05b0ba62 (patch)
tree6a63159a4f7ccbb450808c9507f67b9e34d4f67e
parentda0944ff3f4cc649dddeeec3f2659ca9029079ca (diff)
parent9ab1c5d089c7c68de82dda9fd4094fb2170cf89b (diff)
downloadvyos-1x-025eb1fc477469e07234d2e957e379ab05b0ba62.tar.gz
vyos-1x-025eb1fc477469e07234d2e957e379ab05b0ba62.zip
Merge pull request #2387 from vyos/mergify/bp/sagitta/pr-2384
T5642: op-cmd: correction of generated file name (backport #2384)
-rwxr-xr-xsrc/op_mode/generate_tech-support_archive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/generate_tech-support_archive.py b/src/op_mode/generate_tech-support_archive.py
index 23d81f986..c490b0137 100755
--- a/src/op_mode/generate_tech-support_archive.py
+++ b/src/op_mode/generate_tech-support_archive.py
@@ -100,7 +100,7 @@ if __name__ == '__main__':
location_path = args.path[:-1] if args.path[-1] == '/' else args.path
hostname: str = gethostname()
- time_now: str = datetime.now().isoformat(timespec='seconds')
+ time_now: str = datetime.now().isoformat(timespec='seconds').replace(":", "-")
remote = False
tmp_path = ''
@@ -145,4 +145,4 @@ if __name__ == '__main__':
rmtree(tmp_dir)
finally:
# cleanup
- exit() \ No newline at end of file
+ exit()