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:
parent
303b034a3b
commit
c0a27abbd1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue