Merge "Remove unused variable"

This commit is contained in:
Jenkins 2017-04-18 08:43:14 +00:00 committed by Gerrit Code Review
commit 6ae1ef2ad3
3 changed files with 3 additions and 3 deletions

View File

@ -623,7 +623,7 @@ def get_alembic_configs():
script_location = _get_subproject_script_location(CONF.subproject)
script_locations[CONF.subproject] = script_location
else:
for subproject, ep in migration_entrypoints.items():
for subproject in migration_entrypoints:
script_locations[subproject] = _get_subproject_script_location(
subproject)

View File

@ -395,7 +395,7 @@ class IptablesMeteringDriver(abstract_driver.MeteringAbstractDriver):
if not rm:
continue
for label_id, label in rm.metering_labels.items():
for label_id in rm.metering_labels:
try:
chain = iptables_manager.get_chain_name(WRAP_NAME +
LABEL +

View File

@ -221,7 +221,7 @@ class ProviderConfiguration(object):
self.add_provider(prov)
def _ensure_driver_unique(self, driver):
for k, v in self.providers.items():
for v in self.providers.values():
if v['driver'] == driver:
msg = (_("Driver %s is not unique across providers") %
driver)