From 5b7affa58e20c2b5a820508d161f0b571b1afc61 Mon Sep 17 00:00:00 2001 From: Stefano Canepa Date: Thu, 18 Jul 2019 16:08:55 +0100 Subject: [PATCH] Pass to parted parameters based on fs type. Even if the partiton type was specified as something different from ext4 parted was passed ext4 parameters. Change-Id: Ia2905d0b1acacc07ab2fb0363a4d45bff0a93f4e --- tests/roles/bootstrap-host/tasks/prepare_data_disk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/tasks/prepare_data_disk.yml b/tests/roles/bootstrap-host/tasks/prepare_data_disk.yml index 32daa05de6..1012828ae2 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_data_disk.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_data_disk.yml @@ -61,7 +61,7 @@ filesystem: fstype: "{{ bootstrap_host_data_disk_fs_type }}" dev: "/dev/{{ _bootstrap_host_data_disk_device }}1" - opts: "{{ bootstrap_host_format_options['ext4'] | default(omit) }}" + opts: "{{ bootstrap_host_format_options[bootstrap_host_data_disk_fs_type] | default(omit) }}" when: - bootstrap_host_data_disk_device_force | bool tags: