Skip to content

Commit

Permalink
Merge pull request #140 from subutai-io/issue-139
Browse files Browse the repository at this point in the history
fixed cli read user conf parameter disk size #139
  • Loading branch information
jadilet authored Dec 3, 2018
2 parents ee47115 + 7efc07e commit 35012eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/vagrant-subutai/packer/subutai_disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ def self.save_conf(grow_by)
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
Expand Down

0 comments on commit 35012eb

Please sign in to comment.