From 46acf2d05ceb8b678db0e86a9204a1b33b52bb6b Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 16 May 2017 14:50:47 -0500 Subject: [PATCH] Fix CentOS swap creation The bootstrap_host_swap_size variable contains a string and it is being repeated 1024 times. This patch ensures that the variable returns an integer so that it is calculated properly. Change-Id: I0f1da21482f29e112bc6a96cd57654c631ac0f61 --- tests/roles/bootstrap-host/vars/redhat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/vars/redhat.yml b/tests/roles/bootstrap-host/vars/redhat.yml index a9b5fdce23..0006ee56e7 100644 --- a/tests/roles/bootstrap-host/vars/redhat.yml +++ b/tests/roles/bootstrap-host/vars/redhat.yml @@ -31,7 +31,7 @@ packages_install: packages_remove: [] -swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ bootstrap_host_swap_size*1024 }}" +swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ (bootstrap_host_swap_size | int) * 1024 }}" rc_local: /etc/rc.d/rc.local rc_local_insert_before: "^touch /var/lock/subsys/local$"