Skip to content

Commit 1f8962a

Browse files
MoteHuemarkgoddard
andauthored
Apply suggestions from code review
Co-authored-by: Mark Goddard <[email protected]>
1 parent 3be5458 commit 1f8962a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

etc/kayobe/kolla.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,17 @@ kolla_build_blocks:
353353
{% if kolla_base_distro in ['centos', 'rocky'] %}
354354
RUN \
355355
if [ -f /etc/yum.repos.d.backup/repos.tar.gz ]; then \
356-
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d
357-
rm -rf /etc/yum.repos.d.backup/
356+
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
357+
rm -rf /etc/yum.repos.d.backup/ \
358358
fi && \
359359
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \
360360
echo "Found repository mirror in Yum repositories"; \
361361
exit 1; \
362-
fi && \
362+
fi
363363
{% else %}
364364
RUN \
365365
if [ -f /etc/apt/sources.list.backup ]; then \
366-
mv /etc/apt/sources.list.backup /etc/apt/sources.list
366+
mv /etc/apt/sources.list.backup /etc/apt/sources.list \
367367
fi && \
368368
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/apt/sources.list; then \
369369
echo "Found repository mirror in APT repositories"; \

0 commit comments

Comments
 (0)