skipped_host_aggregates regexp should allow hyphens
Bug #1859619 reported by
Alvaro Uria
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-openstack-service-checks |
Fix Released
|
Wishlist
|
Alvaro Uria |
Bug Description
Current regular expression allows: alphanumeric[
>>> import re
>>> s = "AZ-AGGR"
>>> regex = r'(\w+[,\w+]*)'
>>> re.findall(regex, s)
['AZ', 'AGGR']
However, there are host aggregates that may have hyphens or underscores.
>>> regex = r'([\w_
>>> re.findall(regex, s)
['AZ-AGGR']
Related branches
~aluria/charm-openstack-service-checks/+git/charm-openstack-service-checks:bug/1859619
Merged
into
~canonical-bootstack/charm-openstack-service-checks:master
at
revision e9f993ef752cbc5b824c12c94be26c04a98aea41
- Peter Sabaini (community): Approve
-
Diff: 13 lines (+1/-1)1 file modifiedlib/lib_openstack_service_checks.py (+1/-1)
To post a comment you must log in.
updated regexp to r'([\w_ -]+(?:, [\w_-]+ )*)'