esunar / test4

GNU General Public License v3.0
0 stars 0 forks source link

juju-lint Traceback on regex group match #140

Closed esunar closed 2 years ago

esunar commented 2 years ago

After commit https://git.launchpad.net/juju-lint/commit/?id=030996077ca300b2a8c81a6d64eaf825f5e91a18 juju-lint fails on solutions-qa FCB test runs.

2019-01-31-00:45:41 fce.openstack.juju-lint ERROR Command failed: juju-lint -c /usr/share/juju-lint/contrib/canonical-openstack-rules.yaml /home/ubuntu/project/generated/openstack/juju_status.json 2019-01-31-00:45:41 fce.openstack.juju-lint ERROR Traceback (most recent call last): File "/usr/bin/juju-lint", line 11, in load_entry_point('juju-lint===1.0.0.dev2-201901301611-ubuntu18.04.1', 'console_scripts', 'juju-lint')() File "/usr/lib/python3/dist-packages/jujulint.py", line 386, in main lint(filename, lint_rules) File "/usr/lib/python3/dist-packages/jujulint.py", line 344, in lint map_charms(j[applications], model) File "/usr/lib/python3/dist-packages/jujulint.py", line 269, in map_charms charm = match.group(4) AttributeError: 'NoneType' object has no attribute 'group'

The juju_status.json is attached.


Imported from Launchpad using lp2gh.

esunar commented 2 years ago

(by jog)