From 90d96ccd742469aaab755ba739ac4a7c016731bd Mon Sep 17 00:00:00 2001 From: huzhiling Date: Thu, 9 Mar 2017 15:39:04 +0800 Subject: [PATCH] Fix two spelling errors In conf/plugins/ml2/drivers/l2pop.py, the spelling "whent" should be "when". And in neutron/pecan_wsgi/hooks/policy_enforcement.py, the "conventietly" should be "conveniently". Change-Id: I1e2dd7e27523ac18a3ceadeac5375a008167e54d --- neutron/conf/plugins/ml2/drivers/l2pop.py | 2 +- neutron/pecan_wsgi/hooks/policy_enforcement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/conf/plugins/ml2/drivers/l2pop.py b/neutron/conf/plugins/ml2/drivers/l2pop.py index a8b6f23ec3d..b07d37b2cdc 100644 --- a/neutron/conf/plugins/ml2/drivers/l2pop.py +++ b/neutron/conf/plugins/ml2/drivers/l2pop.py @@ -21,7 +21,7 @@ from neutron._i18n import _ l2_population_options = [ cfg.IntOpt('agent_boot_time', default=180, help=_('Delay within which agent is expected to update ' - 'existing ports whent it restarts')), + 'existing ports when it restarts')), ] diff --git a/neutron/pecan_wsgi/hooks/policy_enforcement.py b/neutron/pecan_wsgi/hooks/policy_enforcement.py index 0af23dd0989..e12f9ff36c3 100644 --- a/neutron/pecan_wsgi/hooks/policy_enforcement.py +++ b/neutron/pecan_wsgi/hooks/policy_enforcement.py @@ -124,7 +124,7 @@ class PolicyHook(hooks.PecanHook): resources_copy.append(obj) # TODO(salv-orlando): as other hooks might need to prefetch resources, # store them in the request context. However, this should be done in a - # separate hook which is conventietly called before all other hooks + # separate hook which is conveniently called before all other hooks state.request.context['original_resources'] = original_resources for item in resources_copy: try: