diff --git a/releasenotes/notes/cache-in-use-volumes-c7fa8bb378106fe3.yaml b/releasenotes/notes/cache-in-use-volumes-c7fa8bb378106fe3.yaml new file mode 100644 index 000000000..4ac0b61af --- /dev/null +++ b/releasenotes/notes/cache-in-use-volumes-c7fa8bb378106fe3.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - Fixed caching the volume list when volumes are in + use. diff --git a/shade/openstackcloud.py b/shade/openstackcloud.py index dc8471696..35708a19d 100644 --- a/shade/openstackcloud.py +++ b/shade/openstackcloud.py @@ -65,7 +65,7 @@ OBJECT_CONTAINER_ACLS = { def _no_pending_volumes(volumes): '''If there are any volumes not in a steady state, don't cache''' for volume in volumes: - if volume['status'] not in ('available', 'error'): + if volume['status'] not in ('available', 'error', 'in-use'): return False return True