diff options
author | ricolin <rico.lin@easystack.cn> | 2017-08-02 15:52:48 +0800 |
---|---|---|
committer | ricolin <rico.lin@easystack.cn> | 2018-02-07 16:50:34 +0800 |
commit | 20fb0efa112e64ed3c601b0b4e5853dc2c3c6891 (patch) | |
tree | 87e9e13bca6b4ae9632a52af71c522ed5fb15541 /hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py | |
parent | a7243bc0896a24e0d403589b852ba51ecb4ff2a0 (diff) | |
download | heat-templates-20fb0efa112e64ed3c601b0b4e5853dc2c3c6891.tar.gz |
Deprecate hooks in heat-templates
We already create repository `heat-agents` for hooks and will keep
maintain hooks there, so we should deprecate all hooks in
heat-templates and plan to remove it in futuer.
Change-Id: Ie2d89d5bab7db2bc6a2e171dc455098811519440
Diffstat (limited to 'hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py')
-rwxr-xr-x | hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py b/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py index 426ee54..b07d182 100755 --- a/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py +++ b/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py @@ -17,6 +17,7 @@ import logging import os import subprocess import sys +import warnings WORKING_DIR = os.environ.get('HEAT_ANSIBLE_WORKING', '/var/lib/heat-config/heat-config-ansible') @@ -32,6 +33,9 @@ def prepare_dir(path): def main(argv=sys.argv): + warnings.warn('This hook is deprecated, please use hooks from heat-agents ' + 'repository instead.', DeprecationWarning) + log = logging.getLogger('heat-config') handler = logging.StreamHandler(sys.stderr) handler.setFormatter( |