Remove unused variable
TrivialFix Change-Id: I9483695a4ad9a1aa3ae26afd9b760891376c23c6
This commit is contained in:
parent
125c043017
commit
4698b7b931
|
@ -623,7 +623,7 @@ def get_alembic_configs():
|
||||||
script_location = _get_subproject_script_location(CONF.subproject)
|
script_location = _get_subproject_script_location(CONF.subproject)
|
||||||
script_locations[CONF.subproject] = script_location
|
script_locations[CONF.subproject] = script_location
|
||||||
else:
|
else:
|
||||||
for subproject, ep in migration_entrypoints.items():
|
for subproject in migration_entrypoints:
|
||||||
script_locations[subproject] = _get_subproject_script_location(
|
script_locations[subproject] = _get_subproject_script_location(
|
||||||
subproject)
|
subproject)
|
||||||
|
|
||||||
|
|
|
@ -395,7 +395,7 @@ class IptablesMeteringDriver(abstract_driver.MeteringAbstractDriver):
|
||||||
if not rm:
|
if not rm:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for label_id, label in rm.metering_labels.items():
|
for label_id in rm.metering_labels:
|
||||||
try:
|
try:
|
||||||
chain = iptables_manager.get_chain_name(WRAP_NAME +
|
chain = iptables_manager.get_chain_name(WRAP_NAME +
|
||||||
LABEL +
|
LABEL +
|
||||||
|
|
|
@ -221,7 +221,7 @@ class ProviderConfiguration(object):
|
||||||
self.add_provider(prov)
|
self.add_provider(prov)
|
||||||
|
|
||||||
def _ensure_driver_unique(self, driver):
|
def _ensure_driver_unique(self, driver):
|
||||||
for k, v in self.providers.items():
|
for v in self.providers.values():
|
||||||
if v['driver'] == driver:
|
if v['driver'] == driver:
|
||||||
msg = (_("Driver %s is not unique across providers") %
|
msg = (_("Driver %s is not unique across providers") %
|
||||||
driver)
|
driver)
|
||||||
|
|
Loading…
Reference in New Issue