Skip to content

Commit

Permalink
use 'unknown' for build date in case BUILD file is missing
Browse files Browse the repository at this point in the history
in case a BUILD file is missing we used the current time for
the build time - which can be really confusing
  • Loading branch information
durandom committed Oct 23, 2017
1 parent 2ec76f1 commit ff44f64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/vmdb/appliance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ def self.get_build
if File.exist?(build_file)
build = File.read(build_file).strip.split("-").last
else
date = Time.now.strftime("%Y%m%d%H%M%S")
sha = `git rev-parse --short HEAD`.chomp
build = "#{date}_#{sha}"
build = "unknown_#{sha}"
end

build
Expand Down

0 comments on commit ff44f64

Please sign in to comment.