Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate relations into separate yaml document #156

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openstack/openstack.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ applications:
ssl_ca: *ssl_ca
ssl_cert: *ssl_cert
ssl_key: *ssl_key
---
relations:
- [ nova-cloud-controller:shared-db, __MYSQL_INTERFACE__ ]
- [ nova-cloud-controller:amqp, rabbitmq-server ]
Expand Down
8 changes: 4 additions & 4 deletions tools/juju-bundle-applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

for filename in sys.argv[1:]:
with open(filename, 'r') as f:
data = yaml.load(f, Loader=yaml.SafeLoader)
if 'applications' in data:
application_list.update(data['applications'].keys())

data = yaml.load_all(f, Loader=yaml.SafeLoader)
for d in data:
if 'applications' in d:
application_list.update(d['applications'].keys())
print('\n'.join(application_list))