when the same keys exist multiple times in ocp_project_config_source - import fails and constructs the wrong URL to source environment information from.
Steps to reproduce - change ocp_project_config_source and duplicate
# KEY for searching
oc_env=https://192.168.99.100:8443
oc_env=https://openshift.default.svc.cluster.local
which are used to identify the correct source configuration thru
# find the right configuration based on the API host source config
if [[ -f "ocp_config" ]]; then
sourceHost=$(grep export ocp_config | cut -d '=' -f2)
sourceconfig=$(grep -H $sourceHost $scriptdir/migration_config/ocp_project_config_source | cut -d ':' -f1)
when the same keys exist multiple times in ocp_project_config_source - import fails and constructs the wrong URL to source environment information from.
Steps to reproduce - change ocp_project_config_source and duplicate
which are used to identify the correct source configuration thru