Bugfix: to list all used loop device 63/55563/3
authorting wu <ting.wu@enea.com>
Thu, 12 Apr 2018 10:31:37 +0000 (12:31 +0200)
committerting wu <ting.wu@enea.com>
Thu, 12 Apr 2018 10:50:00 +0000 (10:50 +0000)
Bug fix in script "build_yardstick_image.yml", to

- Use option "-a" to list all used loop devices, to be more compatible.
- Ignore the error and continue, if the debug command failed.

JIRA: YARDSTICK-1121

Change-Id: I24aaebb2ffe3107ca5c619401725aa8c8e1af295
Signed-off-by: ting wu <ting.wu@enea.com>
ansible/build_yardstick_image.yml

index 429ab88..c926af2 100644 (file)
@@ -75,8 +75,9 @@
       ignore_errors: true
 
     - name: Debug dump loop devices
-      command: losetup
+      command: losetup -a
       register: losetup_output
+      ignore_errors: true
 
     - debug:
         var: losetup_output