From 2fdc6eb9108faa972ba08dc0ae1fc1e10cf92b3d Mon Sep 17 00:00:00 2001 From: rafalop Date: Tue, 28 Nov 2023 11:59:53 +1100 Subject: [PATCH] Update tools/juju-bundle-applications.py thanks for catching that Co-authored-by: Nicolas Bock --- tools/juju-bundle-applications.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/juju-bundle-applications.py b/tools/juju-bundle-applications.py index badcf263..2ac1600d 100755 --- a/tools/juju-bundle-applications.py +++ b/tools/juju-bundle-applications.py @@ -8,7 +8,7 @@ for filename in sys.argv[1:]: with open(filename, 'r') as f: data = yaml.load_all(f, Loader=yaml.SafeLoader) - if 'applications' in data: - application_list.update(data['applications'].keys()) - + for d in data: + if 'applications' in d: + application_list.update(d['applications'].keys()) print('\n'.join(application_list))