Reviewed: https://review.opendev.org/739190 Committed: https://git.openstack.org/cgit/openstack/cinderlib/commit/?id=db573863aaf5a836ac63acbd55c42ba7677c0294 Submitter: Zuul Branch: master
commit db573863aaf5a836ac63acbd55c42ba7677c0294 Author: Gorka Eguileor <email address hidden> Date: Fri Jul 3 11:15:27 2020 +0200
Prevent duplicated backend names
With this patch we prevent us from having duplicated backend names for different driver configurations during the same run.
If we pass the same name and configuration to Backend a second time we get the Backend instance that was created on the first call.
If we pass the same name with a different configuration then we raise an exception on the second call.
Change-Id: I87c14d236d7f2685315e4088db527090680c9523 Closes-Bug: #1886164
Reviewed: https:/ /review. opendev. org/739190 /git.openstack. org/cgit/ openstack/ cinderlib/ commit/ ?id=db573863aaf 5a836ac63acbd55 c42ba7677c0294
Committed: https:/
Submitter: Zuul
Branch: master
commit db573863aaf5a83 6ac63acbd55c42b a7677c0294
Author: Gorka Eguileor <email address hidden>
Date: Fri Jul 3 11:15:27 2020 +0200
Prevent duplicated backend names
With this patch we prevent us from having duplicated backend names for
different driver configurations during the same run.
If we pass the same name and configuration to Backend a second time we
get the Backend instance that was created on the first call.
If we pass the same name with a different configuration then we raise an
exception on the second call.
Change-Id: I87c14d236d7f26 85315e4088db527 090680c9523
Closes-Bug: #1886164