From cc0b2ee68bed05cde194463ca5d794b625bde01e Mon Sep 17 00:00:00 2001 From: Pablo Caruana Date: Tue, 19 Jul 2016 18:01:06 +0200 Subject: [PATCH] Fix some typos Change-Id: I87f3328a13767367e6ade54217a226f6b660975a --- .../elements/heat-config-puppet/install.d/hook-puppet.py | 2 +- .../elements/heat-config-salt/install.d/hook-salt.py | 2 +- tests/software_config/test_heat_config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hot/software-config/elements/heat-config-puppet/install.d/hook-puppet.py b/hot/software-config/elements/heat-config-puppet/install.d/hook-puppet.py index 6b5b5bc..1a31bc5 100755 --- a/hot/software-config/elements/heat-config-puppet/install.d/hook-puppet.py +++ b/hot/software-config/elements/heat-config-puppet/install.d/hook-puppet.py @@ -146,7 +146,7 @@ def main(argv=sys.argv): log.info(content) response['deploy_{0}'.format(i)] = content - # returncode of 2 means there were successfull changes + # returncode of 2 means there were successful changes if subproc.returncode in (0, 2): returncode = 0 log.info('Completed %s' % fn) diff --git a/hot/software-config/elements/heat-config-salt/install.d/hook-salt.py b/hot/software-config/elements/heat-config-salt/install.d/hook-salt.py index a777ebb..7907df1 100755 --- a/hot/software-config/elements/heat-config-salt/install.d/hook-salt.py +++ b/hot/software-config/elements/heat-config-salt/install.d/hook-salt.py @@ -91,7 +91,7 @@ def main(argv=sys.argv): log.info('Results: %s' % ret) output = yaml.safe_dump(ret['return']) - # returncode of 0 means there were successfull changes + # returncode of 0 means there were successful changes if ret['retcode'] == 0: log.info('Completed applying salt state %s' % state_file) stdout = output diff --git a/tests/software_config/test_heat_config.py b/tests/software_config/test_heat_config.py index 8d82b7f..df23bda 100644 --- a/tests/software_config/test_heat_config.py +++ b/tests/software_config/test_heat_config.py @@ -185,7 +185,7 @@ class HeatConfigTest(common.RunScriptTest): self.assertEqual(self.outputs[hook], self.json_from_file(stdout_path)) - # clean up files in preperation for second run + # clean up files in preparation for second run os.remove(stdin_path) os.remove(stdout_path)