The ceph nodes couldn't have the python six library installed which
could lead to error during the ceph_volume custom module execution.
ImportError: No module named six
The six library isn't useful in this module if we're sure that all
action variables passed to the build_ceph_volume_cmd function are a
list and not a string.
Resolves: #4071
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
import copy
import json
import os
-import six
ANSIBLE_METADATA = {
'metadata_version': '1.0',
if cluster:
cmd.extend(['--cluster', cluster])
- cmd.extend(action if not isinstance(action, six.string_types) else [action])
+ cmd.extend(action)
return cmd
List storage inventory.
'''
- action = 'inventory'
+ action = ['inventory']
cmd = build_ceph_volume_cmd(action, container_image)
cmd.append('--format=json')