Merge "Remove unused variable"
This commit is contained in:
commit
6ae1ef2ad3
@ -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)
|
||||
|
||||
|
@ -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 +
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user