diff options
author | Zuul <zuul@review.openstack.org> | 2018-05-10 13:01:59 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-05-10 13:01:59 +0000 |
commit | 6b5a7cd2b5fddcee647dbc38d8b9100384157d05 (patch) | |
tree | 21ab08f44301e8a1aec19dcd57298c57ee792803 /hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py | |
parent | 28ab0afaa557d4814f1406db4a097fbbc5037550 (diff) | |
parent | 20fb0efa112e64ed3c601b0b4e5853dc2c3c6891 (diff) | |
download | heat-templates-6b5a7cd2b5fddcee647dbc38d8b9100384157d05.tar.gz |
Merge "Deprecate hooks in heat-templates"
Diffstat (limited to 'hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py')
-rwxr-xr-x | hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py b/hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py index f5d859c..bcbafc9 100755 --- a/hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py +++ b/hot/software-config/elements/heat-config-cfn-init/install.d/hook-cfn-init.py @@ -17,6 +17,7 @@ import logging import os import subprocess import sys +import warnings # Ideally this path would be /var/lib/heat-cfntools/cfn-init-data @@ -30,6 +31,9 @@ CFN_INIT_CMD = os.environ.get('HEAT_CFN_INIT_CMD', def main(argv=sys.argv, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr): + warnings.warn('This hook is deprecated, please use hooks from heat-agents ' + 'repository instead.', DeprecationWarning) + log = logging.getLogger('heat-config') handler = logging.StreamHandler(stderr) handler.setFormatter( |