lib/vagrant-subutai/packer/subutai_disk.rb in vagrant-subutai-7.0.8 vs lib/vagrant-subutai/packer/subutai_disk.rb in vagrant-subutai-7.0.9
- old
+ new
@@ -131,10 +131,15 @@
true
end
end
def self.message(grow_by)
- "==> default: Disk size configured to #{SubutaiConfig.get(:DISK_SIZE)}GB, increasing #{SubutaiConfig.get(:DISK_SIZE) - grow_by}GB default by #{grow_by}GB."
+ disk_size = SubutaiConfig.get(:DISK_SIZE)
+
+ unless disk_size.nil?
+ disk_size = disk_size.to_i
+ "==> default: Disk size configured to #{disk_size}GB, increasing #{disk_size - grow_by}GB default by #{grow_by}GB."
+ end
end
# Gives disk file name
# THIS IS FOR OLD VERSION BOXES
# UNDER <= v3.0.5
\ No newline at end of file