Trival fix some typo

1. What is the problem?
There were some typos in this module, which should be modified.
2. What is the solution to the problem?
This change modifies the spelling mistakes.
3. What the features need to be implemented to the Tricircle to
realize the solution?
No new features

Change-Id: I988a974e8887c09c730bc0172aacee0fb85b2c3b
This commit is contained in:
Kevin_Zheng 2016-12-22 08:51:09 +08:00 committed by Zhenyu Zheng
parent fbc1ba158a
commit 1ca024d8dc
5 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ if [ ! -r admin-openrc.sh ];then
exit 1 exit 1
fi fi
echo "Begining the verify testing..." echo "Beginning the verify testing..."
echo "Import client environment variables:" echo "Import client environment variables:"
source $TEST_DIR/admin-openrc.sh source $TEST_DIR/admin-openrc.sh

View File

@ -122,7 +122,7 @@ class RoutingController(rest.RestController):
if not policy.enforce(context, policy.ADMIN_API_ROUTINGS_LIST): if not policy.enforce(context, policy.ADMIN_API_ROUTINGS_LIST):
return utils.format_api_error( return utils.format_api_error(
403, _('Unauthorized to to show all resource routings')) 403, _('Unauthorized to show all resource routings'))
filters = self._get_filters(kwargs) filters = self._get_filters(kwargs)
filters = [{'key': key, filters = [{'key': key,

View File

@ -571,7 +571,7 @@ class NetworkHelper(object):
@staticmethod @staticmethod
def get_create_sg_rule_body(rule, sg_id, ip=None): def get_create_sg_rule_body(rule, sg_id, ip=None):
ip = ip or rule['remote_ip_prefix'] ip = ip or rule['remote_ip_prefix']
# if ip is passed, this is a extended rule for remote group # if ip is passed, this is an extended rule for remote group
return {'security_group_rule': { return {'security_group_rule': {
'tenant_id': rule['tenant_id'], 'tenant_id': rule['tenant_id'],
'remote_group_id': None, 'remote_group_id': None,

View File

@ -1513,7 +1513,7 @@ class PluginTest(unittest.TestCase,
for net in TOP_NETS: for net in TOP_NETS:
if net['name'].startswith('ns_bridge'): if net['name'].startswith('ns_bridge'):
t_ns_bridge_net_id = net['id'] t_ns_bridge_net_id = net['id']
# N-S bridge not created since no extenal network created # N-S bridge not created since no external network created
self.assertIsNone(t_ns_bridge_net_id) self.assertIsNone(t_ns_bridge_net_id)
device_ids = ['', '', ''] device_ids = ['', '', '']

View File

@ -672,7 +672,7 @@ class XManager(PeriodicTasks):
@staticmethod @staticmethod
def _construct_bottom_rule(rule, sg_id, ip=None): def _construct_bottom_rule(rule, sg_id, ip=None):
ip = ip or rule['remote_ip_prefix'] ip = ip or rule['remote_ip_prefix']
# if ip is passed, this is a extended rule for remote group # if ip is passed, this is an extended rule for remote group
return {'remote_group_id': None, return {'remote_group_id': None,
'direction': rule['direction'], 'direction': rule['direction'],
'remote_ip_prefix': ip, 'remote_ip_prefix': ip,