diff options
| author | Maksim Malchuk <maksim.malchuk@gmail.com> | 2022-06-03 17:01:25 +0300 |
|---|---|---|
| committer | Maksim Malchuk <maksim.malchuk@gmail.com> | 2022-06-08 09:08:23 +0000 |
| commit | bce06d2d5a27fd2e430de0078b7d585cfc98d8a4 (patch) | |
| tree | cb93887e12fd5dfac6dcad228cdb1230adf19d70 /kolla/template | |
| parent | e14d6212d425861b7db42a62f457e9018fdfdc69 (diff) | |
| download | kolla-bce06d2d5a27fd2e430de0078b7d585cfc98d8a4.tar.gz kolla-bce06d2d5a27fd2e430de0078b7d585cfc98d8a4.zip | |
Don't ignore errors of 'apt-get update' command
This change fixes an issue with 'apt-get update' command and stop
container building with erroneous source repositories.
Change-Id: I5ce2eb66a647e1805f086aa37942bf5d13eb4106
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
Diffstat (limited to 'kolla/template')
| -rw-r--r-- | kolla/template/methods.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kolla/template/methods.py b/kolla/template/methods.py index 94d72401b..57a5e8330 100644 --- a/kolla/template/methods.py +++ b/kolla/template/methods.py @@ -49,7 +49,7 @@ def debian_package_install(packages, clean_package_cache=True): # handle the apt-get install if reg_packages: - cmds.append('apt-get update') + cmds.append('apt-get --error-on=any update') cmds.append('apt-get -y install --no-install-recommends {}'.format( ' '.join(reg_packages) )) |
