1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ovirt] force volumes reload on volume locked? check.

This commit is contained in:
Amos Benari 2014-04-27 18:04:58 +03:00
parent 303b034a3b
commit c0a27abbd1

View file

@ -34,6 +34,7 @@ module Fog
end
def locked?
@volumes = nil # force reload volumes
!!(status =~ /locked/i) || (attributes[:volumes]=nil) || volumes.any?{|v| !!(v.status =~ /locked/i)}
end