Merge "Don't ignore the remaining apt-get update errors"

This commit is contained in:
Zuul 2022-09-27 12:37:18 +00:00 committed by Gerrit Code Review
commit 2185f817ba
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 %}