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))