Commit 456da2c9 by Czémán Arnold

Merge branch 'master' into ceph

parents 258adab7 1562b83b
......@@ -11,4 +11,5 @@ TimeoutStopSec=600
Restart=always
WorkingDirectory=/home/cloud/vmdriver
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A netcelery worker --loglevel=info -n %H.%I"
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A netcelery worker --loglevel=info -n $(/bin/hostname -s).%I"
......@@ -11,4 +11,5 @@ TimeoutStopSec=600
Restart=always
WorkingDirectory=/home/cloud/vmdriver
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A vmcelery worker --loglevel=info -n %H.%I"
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A vmcelery worker --loglevel=info -n $(/bin/hostname -s).%I"
......@@ -650,13 +650,13 @@ def get_driver_version():
from git import Repo
try:
repo = Repo(path=os.getcwd())
lc = repo.log()[0]
return {'branch': repo.active_branch,
'commit': lc.id_abbrev,
lc = repo.head.commit
return {'branch': repo.active_branch.name,
'commit': lc.hexsha,
'commit_text': lc.summary,
'is_dirty': repo.is_dirty}
except:
logging.exception("Unhandled exception: ")
'is_dirty': repo.is_dirty()}
except Exception as e:
logging.exception("Unhandled exception: %s", e)
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment