Remove duplicate on_config hook register
CinderStoragePluginCharm should not register self.on_config as a hook, because the parent class method already will call this on config changed (OSBaseCharm._on_config). (also add new tox test targets to keep zuul happy) Change-Id: I202ad2134e6d56881213a63899e7afda1cc0de00
This commit is contained in:
parent
96107db929
commit
35237c71f4
|
@ -61,7 +61,6 @@ class CinderStoragePluginCharm(ops_openstack.core.OSBaseCharm):
|
|||
|
||||
def __init__(self, framework):
|
||||
super().__init__(framework)
|
||||
self.framework.observe(self.on.config_changed, self.on_config)
|
||||
self.framework.observe(
|
||||
self.on.storage_backend_relation_changed,
|
||||
self.on_storage_backend)
|
||||
|
|
10
tox.ini
10
tox.ini
|
@ -46,6 +46,16 @@ basepython = python3.8
|
|||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = stestr run --slowest {posargs}
|
||||
|
||||
[testenv:py39]
|
||||
basepython = python3.9
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = stestr run --slowest {posargs}
|
||||
|
||||
[testenv:py310]
|
||||
basepython = python3.10
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = stestr run --slowest {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
|
|
Loading…
Reference in New Issue