From 57d5a127b95ab4a22dbd03c0b52fae9dadd40e9a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 25 Oct 2019 17:11:18 +0300 Subject: [PATCH] Add locale override for space identification If role is runned for an AIO build and deployers machine has non-EN locale, awk won't simply work which makes role fail with "Not enough space available". Change-Id: Iae2ec4e8b7ba5b00c287a029ec0f2415af525402 --- tests/roles/bootstrap-host/tasks/check-requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/roles/bootstrap-host/tasks/check-requirements.yml b/tests/roles/bootstrap-host/tasks/check-requirements.yml index cd0707c753..0f7e67e7d1 100644 --- a/tests/roles/bootstrap-host/tasks/check-requirements.yml +++ b/tests/roles/bootstrap-host/tasks/check-requirements.yml @@ -55,6 +55,8 @@ else df -BK / | awk '!/^Filesystem/ {print $4}' | sed 's/K//' fi + environment: + LC_ALL: en_US.UTF-8 when: - bootstrap_host_data_disk_device == None changed_when: false