Merge "Fix typos in cfn scripts"

This commit is contained in:
Jenkins 2015-06-09 02:40:36 +00:00 committed by Gerrit Code Review
commit c4c50583c8
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',
@ -76,7 +76,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: