]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
validate: improve message printed in check_devices.yml v3.2.20
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Jul 2019 13:08:39 +0000 (15:08 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 10 Jul 2019 13:37:12 +0000 (09:37 -0400)
commit1716eea5e36d1d0eea2057872463ad472e053ab6
tree740c6169a66388a230fe8b09893305c6a7e6ea5f
parentd739f415497083f28675c4bce5d1b7333adaa424
validate: improve message printed in check_devices.yml

The message prints the whole content of the registered variable in the
playbook, this is not needed and makes the message pretty unclear and
unreadable.

```
"msg": "{'_ansible_parsed': True, 'changed': False, '_ansible_no_log': False, u'err': u'Error: Could not stat device /dev/sdf - No such file or directory.\\n', 'item': u'/dev/sdf', '_ansible_item_result': True, u'failed': False, '_ansible_item_label': u'/dev/sdf', u'msg': u\"Error while getting device information with parted script: '/sbin/parted -s -m /dev/sdf -- unit 'MiB' print'\", u'rc': 1, u'invocation': {u'module_args': {u'part_start': u'0%', u'part_end': u'100%', u'name': None, u'align': u'optimal', u'number': None, u'label': u'msdos', u'state': u'info', u'part_type': u'primary', u'flags': None, u'device': u'/dev/sdf', u'unit': u'MiB'}}, 'failed_when_result': False, '_ansible_ignore_errors': None, u'out': u''} is not a block special file!"
```

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1719023
(cherry picked from commit e6dc3ebd8c8161e56c0a4a1fdb409272b9fd5342)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-validate/tasks/check_devices.yml