Skip to content

Commit bb1c54a

Browse files
author
Roey Prat
committed
RED-32089 timestr is a const. renaming TIME_FORMAT
(cherry picked from commit 2a52e7f)
1 parent b583809 commit bb1c54a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

log_collector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
output_dir = ""
2323
namespace = ""
24-
timestr = time.strftime("%Y%m%d-%H%M%S")
25-
dir_name = "redis_enterprise_k8s_debug_info_{}".format(timestr)
24+
TIME_FORMAT = time.strftime("%Y%m%d-%H%M%S")
25+
dir_name = "redis_enterprise_k8s_debug_info_{}".format(TIME_FORMAT)
2626

2727
api_resources = [
2828
"RedisEnterpriseCluster",
@@ -53,7 +53,7 @@ def run(configured_namespace, configured_output_path):
5353
else:
5454
namespace = get_namespace_from_config()
5555

56-
global timestr
56+
global TIME_FORMAT
5757
global dir_name
5858

5959
if configured_output_path:

0 commit comments

Comments
 (0)