Can two tenant have the same datacenter or cluster name ?
I have multiple clients with datecenters named "datacenter" and it seems that the script wont consider the fact that they are from different tenant. Same for clusters.
In the following log output we can see the script update the cluster of the first datacenter "Datacenter" with the info of the cluster in the second datacenter named "Datacenter_GMK"
2022-06-03 14:24:39,814 - DEBUG: vCenter returned '1' datacenter
2022-06-03 14:24:39,882 - DEBUG: Parsing vCenter datacenter: Datacenter_GMK
2022-06-03 14:24:39,883 - INFO: Created new cluster group object: Datacenter_GMK
2022-06-03 14:24:40,086 - DEBUG: vCenter returned '1' cluster
2022-06-03 14:24:40,357 - DEBUG: Parsing vCenter cluster: Cluster
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'group' changed from 'Datacenter' to 'Datacenter_GMK'
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'site' changed from 'ETIYT' to 'GMK'
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'tenant' changed from 'ETIYT' to 'GMK'
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'tags' changed from '['ETIYT-synced', 'Source: ETIYT']' to '['ETIYT-synced', 'GMK', 'Source: ETIYT']'
2022-06-03 14:24:41,694 - DEBUG: Updated cluster object: Cluster
2022-06-03 14:24:41,895 - DEBUG: vCenter returned '0' networks
2022-06-03 14:24:42,098 - DEBUG: vCenter returned '3' hosts
Can two tenant have the same datacenter or cluster name ?
I have multiple clients with datecenters named "datacenter" and it seems that the script wont consider the fact that they are from different tenant. Same for clusters.
In the following log output we can see the script update the cluster of the first datacenter "Datacenter" with the info of the cluster in the second datacenter named "Datacenter_GMK"
2022-06-03 14:24:39,814 - DEBUG: vCenter returned '1' datacenter
2022-06-03 14:24:39,882 - DEBUG: Parsing vCenter datacenter: Datacenter_GMK
2022-06-03 14:24:39,883 - INFO: Created new cluster group object: Datacenter_GMK
2022-06-03 14:24:40,086 - DEBUG: vCenter returned '1' cluster
2022-06-03 14:24:40,357 - DEBUG: Parsing vCenter cluster: Cluster
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'group' changed from 'Datacenter' to 'Datacenter_GMK'
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'site' changed from 'ETIYT' to 'GMK'
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'tenant' changed from 'ETIYT' to 'GMK'
2022-06-03 14:24:41,694 - INFO: Cluster 'Cluster' attribute 'tags' changed from '['ETIYT-synced', 'Source: ETIYT']' to '['ETIYT-synced', 'GMK', 'Source: ETIYT']'
2022-06-03 14:24:41,694 - DEBUG: Updated cluster object: Cluster
2022-06-03 14:24:41,895 - DEBUG: vCenter returned '0' networks
2022-06-03 14:24:42,098 - DEBUG: vCenter returned '3' hosts