Skip to content

Commit 99e1c90

Browse files
committed
Automation Toolkit Release v2024.4.1
1 parent 0d88778 commit 99e1c90

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cd3_automation_toolkit/Storage/ObjectStorage/create_terraform_oss.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,12 @@ def create_terraform_oss(inputfile, outdir, service_dir, prefix, ct):
289289
print(
290290
f"'{time_rule_locked}' is not in the correct format. It should be in the format 'dd-mm-yyyy'. The retention rules will not be processed.")
291291
continue
292+
'''
292293
else:
293294
print(
294295
f"'{time_rule_locked}' is not in the correct format. It should be in the format of 'YYYY-MM-DDThh:mm:ssZ' or 'YYYY-MM-DDThh:mm:ss.fffZ'. The retention rules will not be processed.")
295296
continue
297+
'''
296298

297299
tempdict = {'retention_rule_display_name': retention_rule_display_name,
298300
'time_unit': time_unit,

cd3_automation_toolkit/Storage/ObjectStorage/export_terraform_oss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ def export_buckets(inputfile, outdir, service_dir, config, signer, ct, export_co
236236
rt_time_rule_locked = str(retention_policy.time_rule_locked)
237237
if rt_time_rule_locked != 'None' and rt_time_rule_locked != '':
238238
date_obj = parser.parse(rt_time_rule_locked)
239-
rt_time_rule_locked = date_obj.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"
239+
# rt_time_rule_locked = date_obj.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"
240+
rt_time_rule_locked = (date_obj.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3]).rstrip("0") + "Z"
240241
rt_data = rt_name + "::" + rt_time_amount + "::" + rt_time_unit + "::" + rt_time_rule_locked
241242
else:
242243
rt_data = rt_name + "::" + rt_time_amount + "::" + rt_time_unit
243-
244244
else:
245245
rt_data=rt_name + "::indefinite"
246246
retention_rule_data_list.append(rt_data)

0 commit comments

Comments
 (0)