5
sys.path.append('hooks/')
7
from charmhelpers.contrib.openstack.utils import (
11
from charmhelpers.core.hookenv import (
17
from neutron_api_utils import (
21
from neutron_api_hooks import (
27
"""Reinstall from source and restart services.
29
If the openstack-origin-git config option was used to install openstack
30
from source git repositories, then this action can be used to reinstall
31
from updated git repositories, followed by a restart of services."""
32
if not git_install_requested():
33
action_fail('openstack-origin-git is not configured')
37
git_install(config('openstack-origin-git'))
40
action_set({'traceback': traceback.format_exc()})
41
action_fail('git-reinstall resulted in an unexpected error')
44
if __name__ == '__main__':