Bug #29265
closedDoes not load datacenter when multiple compute resources are created for same VCenter
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1785683
Description of problem: Does not load datacenter when multiple compute resources are created for same VCenter
Version-Release number of selected component (if applicable):
foreman-1.22
How reproducible:
Steps to Reproduce:
1. Create a Compute resource for the Vcenter having multiple Datacenter
2. Click test connection and connection will be successful and will load the Datacenter.
3. Again try to create new computer resources for the same Vcenter.
4. once clicked on the Test connection, it is successful but not able to load the Datacenter list
Actual results:
Test connection successful but data centers are not listed when multiple compute resource are created for same VCenter
Expected results:
It should load dataceters list after test connection is successful.
Additional info:
This is most likely because of the cache on the datacenters list, as it gets cached under empty CR id.