Skip to content

Commit fe313e8

Browse files
authored
Merge pull request #129 from oracle-devrel/develop
Automation Toolkit Release v2024.4.1
2 parents af5cd15 + 99e1c90 commit fe313e8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
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)

cd3_automation_toolkit/user-scripts/terraform/modules/identity/identity-domain-user/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ resource "oci_identity_domains_user" "user" {
3131
value = var.email
3232
verified = false
3333
}
34-
emails {
34+
dynamic "emails" {
35+
for_each = var.recovery_email != null ?[1]:[]
36+
content {
3537
type = "recovery"
3638
value = var.recovery_email
39+
}
3740
}
41+
3842
dynamic "phone_numbers" {
3943
for_each = can(var.home_phone_number) && var.home_phone_number != null ? [var.home_phone_number] : []
4044
content {

0 commit comments

Comments
 (0)