Merge ~sbparke/juju-lint/+git/juju-lint-1:bug/1915934-1 into juju-lint:master
Status: | Merged |
---|---|
Approved by: | James Troup |
Approved revision: | 76e9888a7bd35dd6b835a9e3a951fc3d0e0f16dc |
Merged at revision: | 003bbb91b8d7c48466faa98b833e66c97c7a333f |
Proposed branch: | ~sbparke/juju-lint/+git/juju-lint-1:bug/1915934-1 |
Merge into: | juju-lint:master |
Diff against target: |
107 lines (+67/-3) 3 files modified
Makefile (+7/-0) jujulint/lint.py (+23/-3) tests/test_jujulint.py (+37/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Lint maintainers | Pending | ||
Review via email: mp+411941@code.launchpad.net |
Commit message
Added logic to parse multiple documents in exported bundle file for service overlays
Description of the change
Usage of saas service overlays and offers can lead to parsing errors as juju-lint is expecting a single yaml document within a juju export file.
This leads to BUG https:/
applications:
grafana:
charm: cs:grafana-51
channel: stable
num_units: 1
to:
- 0
options:
install_
bindings:
"": oam-space
machines:
0:
constraints: tags=nagios spaces=oam-space
series: bionic
--- # overlay.yaml <<-- starts new document
applications:
grafana:
offers:
grafana:
endpoints:
- dashboards
acl:
admin: admin
leads to
yaml.composer.
in "<unicode string>", line 1, column 1:
series: bionic
^
but found another document
in "<unicode string>", line 627, column 1:
--- # overlay.yaml
^
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.