Skip to content

Commit 79b78db

Browse files
committed
Automation Toolkit Release v2024.2.0
1 parent ed740aa commit 79b78db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cd3_automation_toolkit/Storage/BlockVolume/export_blockvolumes_nonGreenField.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ def print_blockvolumes(region, BVOLS, bvol, compute, ct, values_for_column, ntk_
6767
volume_compartment_id = blockvols.compartment_id
6868
AD_name = blockvols.availability_domain
6969
d_name = blockvols.display_name
70-
70+
bv_defined_tags = blockvols.defined_tags
71+
if 'Oracle-Tags' in bv_defined_tags.keys():
72+
if 'CreatedBy' in bv_defined_tags['Oracle-Tags'].keys():
73+
created_by = bv_defined_tags['Oracle-Tags']['CreatedBy']
74+
if "ocid1.cluster" in created_by:
75+
print("Skipping " + str(d_name) + " as it is created by oke cluster : " + str(created_by))
76+
continue
7177
if ("AD-1" in AD_name or "ad-1" in AD_name):
7278
AD_name = "AD1"
7379
elif ("AD-2" in AD_name or "ad-2" in AD_name):

0 commit comments

Comments
 (0)