lib/percheron/unit.rb in percheron-0.7.10 vs lib/percheron/unit.rb in percheron-0.7.11
- old
+ new
@@ -57,10 +57,10 @@
def image_version
if buildable?
unit_config.version
elsif !unit_config.docker_image.nil?
- unit_config.docker_image.split(':')[1]
+ unit_config.docker_image.split(':')[1] || 'latest'
else
fail Errors::UnitInvalid, 'Cannot determine image version'
end
end