Drop random.choice() in BaseHook.get_connection() (#12573)
Drop random.choice() in BaseHook.get_connection() (#12573)

https://github.com/apache/airflow/pull/9067 made conn_id unique,
and this is effective from 2.0.*.
Due to this change, BaseHook.get_connections() will return a List of length 1, or raise Exception.

In such a case, we should simply always get the only element
from the result from BaseHook.get_connections(),
and drop random.choice() in BaseHook.get_connection(), which was only applicable for the earlier
setting (multiple connections is allowed for single conn_id)
nathanielvarona/airflow,lyft/incubator-airflow,nathanielvarona/airflow,bolkedebruin/airflow,apache/airflow,mistercrunch/airflow,mistercrunch/airflow,nathanielvarona/airflow,dhuang/incubator-airflow,mrkm4ntr/incubator-airflow,cfei18/incubator-airflow,bolkedebruin/airflow,lyft/incubator-airflow,apache/airflow,DinoCow/airflow,Acehaidrey/incubator-airflow,apache/airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,airbnb/airflow,DinoCow/airflow,dhuang/incubator-airflow,cfei18/incubator-airflow,danielvdende/incubator-airflow,DinoCow/airflow,dhuang/incubator-airflow,bolkedebruin/airflow,mrkm4ntr/incubator-airflow,cfei18/incubator-airflow,bolkedebruin/airflow,Acehaidrey/incubator-airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,apache/incubator-airflow,apache/airflow,danielvdende/incubator-airflow,lyft/incubator-airflow,mistercrunch/airflow,nathanielvarona/airflow,sekikn/incubator-airflow,lyft/incubator-airflow,mrkm4ntr/incubator-airflow,Acehaidrey/incubator-airflow,sekikn/incubator-airflow,cfei18/incubator-airflow,airbnb/airflow,apache/airflow,danielvdende/incubator-airflow,apache/airflow,nathanielvarona/airflow,sekikn/incubator-airflow,airbnb/airflow,danielvdende/incubator-airflow,apache/incubator-airflow,danielvdende/incubator-airflow,apache/incubator-airflow,sekikn/incubator-airflow,mistercrunch/airflow,mrkm4ntr/incubator-airflow,dhuang/incubator-airflow,apache/incubator-airflow,airbnb/airflow,bolkedebruin/airflow,cfei18/incubator-airflow,DinoCow/airflow,cfei18/incubator-airflow,Acehaidrey/incubator-airflow