Closed rchekaluk closed 7 months ago
Detaching an attached disk does not update the users list in its Fog::Compute::Google::Disk object:
Fog::Compute::Google::Disk
server.detach_disk(device_name, false) disk.reload assert disk.users.nil? || disk.users == []
This is because reloading the disk object (fog-core Fog::Model#reload) merges its prior attributes with newly retrieved attributes; in a detached disk, the newly-retrieved attributes omit :users key, thus its prior value is retained.
:users
Detaching an attached disk does not update the users list in its
Fog::Compute::Google::Disk
object:This is because reloading the disk object (fog-core Fog::Model#reload) merges its prior attributes with newly retrieved attributes; in a detached disk, the newly-retrieved attributes omit
:users
key, thus its prior value is retained.