Remove unused variable

TrivialFix

Change-Id: I9483695a4ad9a1aa3ae26afd9b760891376c23c6
This commit is contained in:
Béla Vancsics 2017-03-16 07:23:46 +01:00 committed by Kevin Benton
parent 125c043017
commit 4698b7b931
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)