Don't ignore the remaining apt-get update errors

Follow-up to I5ce2eb66a647e1805f086aa37942bf5d13eb4106

So far, I have only observed these causing weird errors later but,
in theory, ignoring these could allow the rest of the code to use
archival (so wrong) entries.

Change-Id: I9cef5ceeb78d431ca232c7b196c48eef5d2ccbca
This commit is contained in:
Radosław Piliszek 2022-09-11 12:46:28 +00:00 committed by Marcin Juszkiewicz
parent 878b00013b
commit 9dd9f425b7
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
{% endif -%}
{% endfor %}
{% endblock %}
RUN apt-get update \
RUN apt-get --error-on=any update \
&& apt-get -y install locales \
&& sed -e "s/# $LANG UTF-8/$LANG UTF-8/g" /etc/locale.gen -i \
&& locale-gen "$LANG" \

View File

@ -36,7 +36,7 @@ ENV ANSIBLE_GATHER_TIMEOUT=30
{% block bifrost_ansible_install %}
{%- if base_package_type == 'deb' %}
RUN apt-get update && \
RUN apt-get --error-on=any update && \
{%- else %}
RUN echo " " && \
{%- endif %}