Fix typos in cfn scripts

Change-Id: Ie411a1d5229a89b545d949b79552c3f6d240783d
This commit is contained in:
tyagi 2015-05-29 02:36:27 -07:00
parent 02acffbe2a
commit bd194f3f53
3 changed files with 7 additions and 7 deletions

View File

@ -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",

View File

@ -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)

View File

@ -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: