Detach sync problem fix

Detach sync problem fix

Closes-Bug: #1647939
Change-Id: I91f31a6bc9730dcbc373406da52bc34349d0de15
This commit is contained in:
Jerry Cai 2016-12-07 14:51:16 +08:00
parent e5babcc287
commit 95fd19527b
1 changed files with 1 additions and 2 deletions

View File

@ -945,8 +945,7 @@ class PowerVCCinderManager(service.Service):
return found
def _is_intermediate_state(self, local_volume=None, pvc_volume=None):
intermediate_statuses = [constants.STATUS_ATTACHING,
constants.STATUS_DETACHING]
intermediate_statuses = [constants.STATUS_ATTACHING]
if local_volume:
local_volume_state = local_volume.get('status')
if local_volume_state in intermediate_statuses: