Unpin flake8, fix lint
Change-Id: I0c3a4b4f8291e0b19d131269554e09346754e120
This commit is contained in:
parent
7a28689ccc
commit
ed3a162d57
@ -24,10 +24,10 @@ from charmhelpers.core.host import (
|
|||||||
is_container,
|
is_container,
|
||||||
lsb_release,
|
lsb_release,
|
||||||
)
|
)
|
||||||
from charmhelpers.contrib.hahelpers.cluster import(
|
from charmhelpers.contrib.hahelpers.cluster import (
|
||||||
get_hacluster_config,
|
get_hacluster_config,
|
||||||
)
|
)
|
||||||
from charmhelpers.contrib.hahelpers.apache import(
|
from charmhelpers.contrib.hahelpers.apache import (
|
||||||
install_ca_cert
|
install_ca_cert
|
||||||
)
|
)
|
||||||
from charmhelpers.contrib.openstack.utils import (
|
from charmhelpers.contrib.openstack.utils import (
|
||||||
@ -155,7 +155,7 @@ def config_changed():
|
|||||||
for module in module_settings.split():
|
for module in module_settings.split():
|
||||||
try:
|
try:
|
||||||
modprobe(module)
|
modprobe(module)
|
||||||
except:
|
except Exception:
|
||||||
message = "Failed to load kernel module '%s'" % module
|
message = "Failed to load kernel module '%s'" % module
|
||||||
log(message, level=WARNING)
|
log(message, level=WARNING)
|
||||||
|
|
||||||
|
@ -1134,7 +1134,7 @@ def check_optional_relations(configs):
|
|||||||
if relation_ids('ha'):
|
if relation_ids('ha'):
|
||||||
try:
|
try:
|
||||||
get_hacluster_config()
|
get_hacluster_config()
|
||||||
except:
|
except Exception:
|
||||||
return ('blocked',
|
return ('blocked',
|
||||||
'hacluster missing configuration: '
|
'hacluster missing configuration: '
|
||||||
'vip, vip_iface, vip_cidr')
|
'vip, vip_iface, vip_cidr')
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
charm-tools>=2.4.4
|
charm-tools>=2.4.4
|
||||||
requests>=2.18.4
|
requests>=2.18.4
|
||||||
mock>=1.2
|
mock>=1.2
|
||||||
flake8>=2.2.4,<=2.4.1
|
flake8>=2.2.4
|
||||||
stestr>=2.2.0
|
stestr>=2.2.0
|
||||||
coverage>=4.5.2
|
coverage>=4.5.2
|
||||||
pyudev # for ceph-* charm unit tests (need to fix the ceph-* charm unit tests/mocking)
|
pyudev # for ceph-* charm unit tests (need to fix the ceph-* charm unit tests/mocking)
|
||||||
|
Loading…
Reference in New Issue
Block a user