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