From bd194f3f536553304c1064521ab3158043228295 Mon Sep 17 00:00:00 2001 From: tyagi Date: Fri, 29 May 2015 02:36:27 -0700 Subject: [PATCH] Fix typos in cfn scripts Change-Id: Ie411a1d5229a89b545d949b79552c3f6d240783d --- bin/cfn-hup | 4 ++-- bin/cfn-push-stats | 6 +++--- bin/cfn-signal | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/cfn-hup b/bin/cfn-hup index ab6f2a1..690eca4 100755 --- a/bin/cfn-hup +++ b/bin/cfn-hup @@ -31,9 +31,9 @@ parser.add_argument('-c', '--config', required=False, default='/etc/cfn/hooks.d') parser.add_argument('-f', '--no-daemon', - dest="no_deamon", + dest="no_daemon", action="store_true", - help="Do not run as a deamon", + help="Do not run as a daemon", required=False) parser.add_argument('-v', '--verbose', action="store_true", diff --git a/bin/cfn-push-stats b/bin/cfn-push-stats index 1fdce9f..da0d155 100755 --- a/bin/cfn-push-stats +++ b/bin/cfn-push-stats @@ -57,7 +57,7 @@ parser.add_argument('--credential-file', dest="credential_file", help="credential-file", required=False, default='/etc/cfn/cfn-credentials') parser.add_argument('--service-failure', required=False, action="store_true", - help='Reports a service falure.') + help='Reports a service failure.') parser.add_argument('--mem-util', required=False, action="store_true", help='Reports memory utilization in percentages.') parser.add_argument('--mem-used', required=False, action="store_true", @@ -122,7 +122,7 @@ if args.service_failure: 'Value': 1, 'Units': 'Counter'} -# heatbeat +# heartbeat # ======== if args.heartbeat: data['Heartbeat'] = { @@ -249,7 +249,7 @@ def send_stats(info): is_secure=False, port=8003, path="/v1", debug=0) # Then we send the metric datapoints passed in "info", note this could - # contain multiple keys as the options parsed above are noe exclusive + # contain multiple keys as the options parsed above are not exclusive # The alarm name is passed as a dimension so the metric datapoint can # be associated with the alarm/watch in the engine metadata = cfn_helper.Metadata('not-used', None) diff --git a/bin/cfn-signal b/bin/cfn-signal index e3d1190..2bbfec3 100755 --- a/bin/cfn-signal +++ b/bin/cfn-signal @@ -47,7 +47,7 @@ parser.add_argument('-i', '--id', required=False) parser.add_argument('-e', '--exit-code', dest="exit_code", - help="The exit code from a procecc to interpret", + help="The exit code from a process to interpret", default=None, required=False) parser.add_argument('--exit', @@ -73,7 +73,7 @@ if args.exit: status = 'FAILURE' exit_code = args.exit_code or args.exit if exit_code: - # "exit_code" takes presedence over "success". + # "exit_code" takes precedence over "success". if exit_code == '0': status = 'SUCCESS' else: