Move charmhelpers to separate dir.
This commit is contained in:
parent
5ca88c090e
commit
9850443aa6
@ -4,3 +4,4 @@ exclude_lines =
|
||||
if __name__ == .__main__.:
|
||||
include=
|
||||
hooks/glance_*
|
||||
actions/actions.py
|
||||
|
@ -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
1
actions/charmhelpers
Symbolic link
@ -0,0 +1 @@
|
||||
../charmhelpers
|
@ -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
1
actions/hooks
Symbolic link
@ -0,0 +1 @@
|
||||
../hooks
|
@ -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
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
branch: lp:charm-helpers
|
||||
destination: hooks/charmhelpers
|
||||
destination: charmhelpers
|
||||
include:
|
||||
- core
|
||||
- cli
|
||||
|
1
hooks/charmhelpers
Symbolic link
1
hooks/charmhelpers
Symbolic link
@ -0,0 +1 @@
|
||||
../charmhelpers
|
Loading…
Reference in New Issue
Block a user