diff options
author | James Simpson <james.simpson@canonical.com> | 2022-11-09 14:08:21 +0800 |
---|---|---|
committer | jsimpso <james.simpson@canonical.com> | 2022-11-09 14:08:21 +0800 |
commit | 71b8a3e1592d4e5c184b4d235933466f18765ff8 (patch) | |
tree | 9a21aa23fb7bb3f1e5f1f5f435ad1a8307196eb1 /scripts | |
parent | 1e4e65f55ba7cc19f78a28f32814877cf2cf2212 (diff) | |
download | vyos-build-71b8a3e1592d4e5c184b4d235933466f18765ff8.tar.gz vyos-build-71b8a3e1592d4e5c184b4d235933466f18765ff8.zip |
T4796: Check more cautiously for presence of keys
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-vyos-image | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image index 5242a7d..a902793 100755 --- a/scripts/build-vyos-image +++ b/scripts/build-vyos-image @@ -383,9 +383,9 @@ if __name__ == "__main__": # Add custom APT entries if not args['custom_apt_entry']: args['custom_apt_entry'] = [] - if build_config['additional_repositories']: + if build_config.get('additional_repositories', False): args['custom_apt_entry'] = args['custom_apt_entry'] + build_config['additional_repositories'] - if build_config['custom_apt_entry']: + if build_config.get('custom_apt_entry', False): custom_apt_file = defaults.CUSTOM_REPO_FILE entries = "\n".join(build_config['custom_apt_entry']) if debug: |