ovirt_storage_domain: Improve logic for state controlling. (#46951)

pull/47116/head
Joey 6 years ago committed by ansibot
parent 9a5561da0f
commit c3cc2ecc5b

@ -565,6 +565,13 @@ def control_state(sd_module):
return
sd_service = sd_module._service.service(sd.id)
# In the case of no status returned, it's an attached storage domain.
# Redetermine the corresponding serivce and entity:
if sd.status is None:
sd_service = sd_module._attached_sd_service(sd)
sd = get_entity(sd_service)
if sd.status == sdstate.LOCKED:
wait(
service=sd_service,

Loading…
Cancel
Save