Move charmhelpers to separate dir.

This commit is contained in:
Alberto Donato 2015-08-25 15:26:22 +03:00
parent 5ca88c090e
commit 9850443aa6
74 changed files with 15 additions and 10 deletions

View File

@ -4,3 +4,4 @@ exclude_lines =
if __name__ == .__main__.:
include=
hooks/glance_*
actions/actions.py

View File

@ -2,3 +2,7 @@ git-reinstall:
description: Reinstall glance from the openstack-origin-git repositories.
openstack-upgrade:
description: Perform openstack upgrades. Config option action-managed-upgrade must be set to True.
pause:
description: Pause glance service.
resume:
description: Resume glance service.

1
actions/charmhelpers Symbolic link
View File

@ -0,0 +1 @@
../charmhelpers

View File

@ -1,8 +1,6 @@
#!/usr/bin/python
import sys
import traceback
sys.path.append('hooks/')
import traceback
from charmhelpers.contrib.openstack.utils import (
git_install_requested,
@ -14,11 +12,11 @@ from charmhelpers.core.hookenv import (
config,
)
from glance_utils import (
from hooks.glance_utils import (
git_install,
)
from glance_relations import (
from hooks.glance_relations import (
config_changed,
)

1
actions/hooks Symbolic link
View File

@ -0,0 +1 @@
../hooks

View File

@ -1,8 +1,7 @@
#!/usr/bin/python
import sys
import traceback
sys.path.append('hooks/')
from charmhelpers.core.hookenv import (
action_set,
@ -10,7 +9,7 @@ from charmhelpers.core.hookenv import (
config
)
from glance_relations import config_changed
from hooks.glance_relations import config_changed
from charmhelpers.contrib.openstack.utils import (
juju_log,
@ -18,7 +17,7 @@ from charmhelpers.contrib.openstack.utils import (
openstack_upgrade_available
)
from glance_utils import (
from hooks.glance_utils import (
do_openstack_upgrade,
register_configs
)

View File

@ -1,5 +1,5 @@
branch: lp:charm-helpers
destination: hooks/charmhelpers
destination: charmhelpers
include:
- core
- cli

1
hooks/charmhelpers Symbolic link
View File

@ -0,0 +1 @@
../charmhelpers