summaryrefslogtreecommitdiff
path: root/hot/software-config/elements/heat-config-chef/install.d/hook-chef.py
diff options
context:
space:
mode:
authorricolin <rico.lin@easystack.cn>2017-08-02 15:52:48 +0800
committerricolin <rico.lin@easystack.cn>2018-02-07 16:50:34 +0800
commit20fb0efa112e64ed3c601b0b4e5853dc2c3c6891 (patch)
tree87e9e13bca6b4ae9632a52af71c522ed5fb15541 /hot/software-config/elements/heat-config-chef/install.d/hook-chef.py
parenta7243bc0896a24e0d403589b852ba51ecb4ff2a0 (diff)
downloadheat-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-chef/install.d/hook-chef.py')
-rwxr-xr-xhot/software-config/elements/heat-config-chef/install.d/hook-chef.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hot/software-config/elements/heat-config-chef/install.d/hook-chef.py b/hot/software-config/elements/heat-config-chef/install.d/hook-chef.py
index 3a4d810..f142982 100755
--- a/hot/software-config/elements/heat-config-chef/install.d/hook-chef.py
+++ b/hot/software-config/elements/heat-config-chef/install.d/hook-chef.py
@@ -19,6 +19,7 @@ import shutil
import six
import subprocess
import sys
+import warnings
DEPLOY_KEYS = ("deploy_server_id",
"deploy_action",
@@ -59,6 +60,9 @@ def run_subproc(fn, **kwargs):
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(