Don't import module "etcd3gw" if etcd3gw backend is not used.
If module etcd3gw is not required for used backend,
then no need to have it installed and imported.
Otherwise we always have ugly log error:
Could not load 'oslo_cache.etcd3gw': No module named 'etcd3gw': ModuleNotFoundError: No module named 'etcd3gw
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.cache/ +/792677 /opendev. org/openstack/ oslo.cache/ commit/ 40946a9349407f3 6a43d5020d99108 5c11468698
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 40946a9349407f3 6a43d5020d99108 5c11468698
Author: Mitya_Eremeev <email address hidden>
Date: Fri May 21 19:50:53 2021 +0300
Don't import module "etcd3gw" if etcd3gw backend is not used.
If module etcd3gw is not required for used backend, etcd3gw' : No module named 'etcd3gw': ModuleNotFoundE rror: No module named 'etcd3gw
then no need to have it installed and imported.
Otherwise we always have ugly log error:
Could not load 'oslo_cache.
Closes-Bug: 1928318 fec1ceb88366027 294e49d7032
Change-Id: Icbe6dc3e93b4d2