diff --git a/lib/fog/libvirt/models/compute/volume.rb b/lib/fog/libvirt/models/compute/volume.rb index 12b60ef..e7dea89 100644 --- a/lib/fog/libvirt/models/compute/volume.rb +++ b/lib/fog/libvirt/models/compute/volume.rb @@ -53,6 +53,15 @@ def wipe service.volume_action key, :wipe end + def reload + super + + # Restore lost defaults + self.format_type ||= defaults[:format_type] + + self + end + # Clones this volume to the name provided def clone(name) new_volume = self.dup