diff options
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( |