heat-templates/tests/software_config
Steve Baker d10069ac13 docker-cmd hook handle empty config file
Early in a server boot the file /var/run/heat-config/heat-config may
exist but be empty. This causes a stack trace to be raised in this
script.

This change detects a json parse error and exits gracefully.

Change-Id: I29d731098659bfbf10a2caf80c2cfc49de5df4cc
Closes-Bug: #1648249
2016-12-13 09:57:52 +13:00
..
__init__.py Unit test of 55-heat-config 2014-10-13 12:19:06 +13:00
common.py Unit test of 55-heat-config 2014-10-13 12:19:06 +13:00
config-tool-fake.py docker-cmd hook 2016-11-04 16:13:18 +13:00
heat_config_notify.py Break out signalling heat-config-notify command 2014-12-12 14:35:07 +13:00
hook_kubelet.py heat-config-kubelet hook 2015-04-02 08:41:38 +05:30
hook-fake.py Unit test of 55-heat-config 2014-10-13 12:19:06 +13:00
test_heat_config_docker_compose.py Use deployment name rather than id for compose project 2015-08-18 13:05:31 +05:30
test_heat_config_kubelet.py Upgrade Hacking version 2015-05-25 11:52:29 +05:30
test_heat_config_notify.py Set content-type for SoftwareConfig's heat-config-notify 2016-11-14 16:59:22 +02:00
test_heat_config.py A hook which writes hiera datafiles. 2016-10-05 21:29:02 -04:00
test_hook_ansible.py Merge "Allow ansible inventory to be configurable" 2016-12-06 02:52:58 +00:00
test_hook_apply_config.py A hook which invokes os-apply-config. 2016-09-29 14:46:45 -04:00
test_hook_atomic.py Add tests and example template for atomic hook 2015-05-07 07:56:37 +05:30
test_hook_cfn_init.py Trigger cfn-init via script rather than lib 2014-10-13 12:19:06 +13:00
test_hook_chef.py Chef-Zero software config hook 2016-01-12 15:50:31 -06:00
test_hook_docker_cmd.py docker-cmd hook handle empty config file 2016-12-13 09:57:52 +13:00
test_hook_docker_compose.py Use deployment name rather than id for compose project 2015-08-18 13:05:31 +05:30
test_hook_hiera.py A hook which writes hiera datafiles. 2016-10-05 21:29:02 -04:00
test_hook_kubelet.py heat-config-kubelet hook 2015-04-02 08:41:38 +05:30
test_hook_puppet.py Add local logging output to puppet hook 2016-11-08 09:08:21 -07:00
test_hook_salt.py Handle non-zero success codes from Salt 2015-10-05 12:24:41 -05:00
test_hook_script.py Enable script hook to handle Json input 2014-11-21 13:05:21 +08:00