From 3ce37a347adb343fe6f493724b22c4846a1163a1 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 25 Oct 2017 10:45:29 +0100 Subject: [PATCH] Correct regex for disk size Currently the regex negates any line starting with any character in the word 'Filesystem', whereas the intent is to negate the word 'Filesystem' instead. Closes-Bug: #1724025 Change-Id: Ia40595e3a06a23494165a210e1dd3e72862eb311 --- tests/roles/bootstrap-host/tasks/check-requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/tasks/check-requirements.yml b/tests/roles/bootstrap-host/tasks/check-requirements.yml index f0c42ccb3f..58782b4fbb 100644 --- a/tests/roles/bootstrap-host/tasks/check-requirements.yml +++ b/tests/roles/bootstrap-host/tasks/check-requirements.yml @@ -32,7 +32,7 @@ if [[ $(df -T / | tail -n 1 | awk '{print $2}') == "btrfs" ]]; then btrfs fi usage --kbytes / | awk '/^.*Free / {print $3}'| sed 's/\..*//' else - df -BK / | awk '/^[^Filesystem]/ {print $4}' | sed 's/K//' + df -BK / | awk '!/^Filesystem/ {print $4}' | sed 's/K//' fi when: bootstrap_host_data_disk_device == None changed_when: false