Correct some misspell words in Kuryr
Correct some misspell words. Such as:happend,adddress,represted,vavule,Prefered,proccesed. Change-Id: I71209d67fec6f27ed2909b211bc4060ca0ba3181 Closes-Bug: #1591660
This commit is contained in:
parent
2e43fccf70
commit
098c313c94
12
kuryr/controllers.py
Normal file → Executable file
12
kuryr/controllers.py
Normal file → Executable file
@ -239,7 +239,7 @@ def _create_port(endpoint_id, neutron_network_id, interface_mac, fixed_ips):
|
||||
try:
|
||||
rcvd_port = app.neutron.create_port({'port': port})
|
||||
except n_exceptions.NeutronClientException as ex:
|
||||
app.logger.error(_LE("Error happend during creating a"
|
||||
app.logger.error(_LE("Error happened during creating a"
|
||||
" Neutron port: %s"), ex)
|
||||
raise
|
||||
return rcvd_port['port']
|
||||
@ -255,7 +255,7 @@ def _update_port(port, endpoint_id):
|
||||
'device_owner': const.DEVICE_OWNER,
|
||||
'device_id': endpoint_id}})
|
||||
except n_exceptions.NeutronClientException as ex:
|
||||
app.logger.error(_LE("Error happend during creating a "
|
||||
app.logger.error(_LE("Error happened during creating a "
|
||||
"Neutron port: %s"), ex)
|
||||
raise
|
||||
return response_port['port']
|
||||
@ -1130,7 +1130,7 @@ def ipam_request_address():
|
||||
allocated_address = '/'.join(
|
||||
[allocated_address, str(cidr.prefixlen)])
|
||||
except n_exceptions.NeutronClientException as ex:
|
||||
app.logger.error(_LE("Error happend during ip allocation on "
|
||||
app.logger.error(_LE("Error happened during ip allocation on "
|
||||
"Neutron side: %s"), ex)
|
||||
raise
|
||||
else:
|
||||
@ -1174,7 +1174,7 @@ def ipam_release_pool():
|
||||
app.logger.info(_LI("The subnetpool with ID %s is still in use."
|
||||
" It can't be deleted for now."), pool_id)
|
||||
except n_exceptions.NeutronClientException as ex:
|
||||
app.logger.error(_LE("Error happend during deleting a "
|
||||
app.logger.error(_LE("Error happened during deleting a "
|
||||
"Neutron subnetpool: %s"), ex)
|
||||
raise
|
||||
|
||||
@ -1240,8 +1240,8 @@ def ipam_release_address():
|
||||
for port in filtered_ports:
|
||||
app.neutron.delete_port(port['id'])
|
||||
except n_exceptions.NeutronClientException as ex:
|
||||
app.logger.error(_LE("Error happend while fetching and deleting port, "
|
||||
"%s"), ex)
|
||||
app.logger.error(_LE("Error happened while fetching "
|
||||
"and deleting port, %s"), ex)
|
||||
raise
|
||||
|
||||
return flask.jsonify(const.SCHEMA['SUCCESS'])
|
||||
|
8
kuryr/schemata/commons.py
Normal file → Executable file
8
kuryr/schemata/commons.py
Normal file → Executable file
@ -119,7 +119,7 @@ COMMONS = {
|
||||
u'ipv4': {
|
||||
u'pattern': IPV4_PATTERN,
|
||||
u'type': u'string',
|
||||
u'description': u'An IPv4 adddress',
|
||||
u'description': u'An IPv4 address',
|
||||
u'example': u'10.0.0.1'
|
||||
},
|
||||
u'ipv4datum': {
|
||||
@ -143,7 +143,7 @@ COMMONS = {
|
||||
u'example': u'foo',
|
||||
},
|
||||
u'Pool': {
|
||||
u'description': u'A range of IP Addresses represted in '
|
||||
u'description': u'A range of IP Addresses requested in '
|
||||
u'CIDR format address/mask.',
|
||||
u'$ref': u'#/definitions/commons/definitions/cidr'
|
||||
},
|
||||
@ -162,7 +162,7 @@ COMMONS = {
|
||||
u'type': u'object',
|
||||
u'patternProperties': {
|
||||
u'.+': {
|
||||
u'description': u'key-vavule pair of the ID and '
|
||||
u'description': u'key-value pair of the ID and '
|
||||
u'the IP address',
|
||||
u'$ref': u'#/definitions/commons/definitions/ipv4'
|
||||
}
|
||||
@ -197,7 +197,7 @@ COMMONS = {
|
||||
u'example': u'foo',
|
||||
},
|
||||
u'Pool': {
|
||||
u'description': u'A range of IP Addresses represted in '
|
||||
u'description': u'A range of IP Addresses requested in '
|
||||
u'CIDR format address/mask.',
|
||||
u'$ref': u'#/definitions/commons/definitions/cidrv6'
|
||||
},
|
||||
|
2
kuryr/schemata/request_address.py
Normal file → Executable file
2
kuryr/schemata/request_address.py
Normal file → Executable file
@ -31,7 +31,7 @@ REQUEST_ADDRESS_SCHEMA = {
|
||||
u'$ref': u'#/definitions/commons/definitions/uuid'
|
||||
},
|
||||
u'Address': {
|
||||
u'description': u'Prefered address in regular IP form.',
|
||||
u'description': u'Preferred address in regular IP form.',
|
||||
u'example': u'10.0.0.1',
|
||||
u'$ref': u'#/definitions/commons/definitions/ipv4_or_ipv6'
|
||||
},
|
||||
|
@ -268,7 +268,7 @@ def parse_args():
|
||||
'debug information in realtime')
|
||||
parser.add_argument('--fails', '-f', action='store_true',
|
||||
dest='post_fails', help='Print failure debug '
|
||||
'information after the stream is proccesed')
|
||||
'information after the stream is processed')
|
||||
parser.add_argument('--failonly', action='store_true',
|
||||
dest='failonly', help="Don't print success items",
|
||||
default=(
|
||||
|
Loading…
x
Reference in New Issue
Block a user