From f9bd7ab67923c7964344e30cf736aa99cb0fd200 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Tue, 15 Nov 2016 09:48:49 -0800 Subject: [PATCH] Configure AIO sources.list with first matched repo The bootstrap-aio role reconfigures sources.list by greping for a pattern in the existing sources.list file. From the results of the grep, register the base and security repos with the first stdout_line instead of the entirety of stdout to avoid unexpected newlines and additional repo URLs. Closes-Bug: 1638878 Change-Id: I64e79701c3ecc62ddec5e7ed86501ca3a94d8f3d --- tests/roles/bootstrap-host/tasks/install-apt.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/roles/bootstrap-host/tasks/install-apt.yml b/tests/roles/bootstrap-host/tasks/install-apt.yml index 0a433ebfe0..f6d98a2115 100644 --- a/tests/roles/bootstrap-host/tasks/install-apt.yml +++ b/tests/roles/bootstrap-host/tasks/install-apt.yml @@ -40,8 +40,8 @@ - name: Set apt repo facts based on discovered information set_fact: - bootstrap_host_ubuntu_repo: "{{ ubuntu_repo.stdout }}" - bootstrap_host_ubuntu_security_repo: "{{ ubuntu_security_repo.stdout }}" + bootstrap_host_ubuntu_repo: "{{ ubuntu_repo.stdout_lines[0] }}" + bootstrap_host_ubuntu_security_repo: "{{ ubuntu_security_repo.stdout_lines[0] }}" when: - bootstrap_host_ubuntu_repo is not defined - bootstrap_host_ubuntu_security_repo is not defined