1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-28 14:50:08 +03:00

F #3016: Allow passing GITVERSION as argument (#3732)

This commit is contained in:
Jan Orel 2019-09-19 10:32:12 +02:00 committed by Tino Vázquez
parent 82bcbbf4c9
commit e8ed764a0c

View File

@ -34,7 +34,7 @@ try:
stdout=PIPE)
git_version = out.communicate()[0].rstrip().decode('utf-8')
except OSError:
git_version = "not known"
git_version = ARGUMENTS.get('gitversion', 'not known')
# This is the absolute path where the project is located
cwd = os.getcwd()