diff --git a/changelogs/fragments/3916-fix-vdo-options-type.yml b/changelogs/fragments/3916-fix-vdo-options-type.yml new file mode 100644 index 0000000000..badf171f5b --- /dev/null +++ b/changelogs/fragments/3916-fix-vdo-options-type.yml @@ -0,0 +1,2 @@ +bugfixes: + - vdo - fix options error (https://github.com/ansible-collections/community.general/pull/4163). diff --git a/plugins/modules/system/vdo.py b/plugins/modules/system/vdo.py index ab5cf4e400..d2888836d1 100644 --- a/plugins/modules/system/vdo.py +++ b/plugins/modules/system/vdo.py @@ -386,7 +386,6 @@ def deactivate_vdo(module, vdoname, vdocmd): def add_vdooptions(params): - vdocmdoptions = "" options = [] if params.get('logicalsize') is not None: @@ -437,7 +436,7 @@ def add_vdooptions(params): if params.get('physicalthreads') is not None: options.append("--vdoPhysicalThreads=" + params['physicalthreads']) - return vdocmdoptions + return options def run_module():