Question
· Dec 19

Article "Ansible modules and IRIS demo" qlist bug

Has anyone tried the Ansible module for qlist in the article "Ansible modules and IRIS demo"?

There appears to be a bug in the qlist code as it assumes that the qlist output has an undocumented field.

I do not have the undocumented field in the output.when I run qlist so I keep getting the error "Unexpected IRIS qlist output format".

I assume that in most cases there is no undocumented field in the output.

In this module:
"iris_qlist.py"
in this test:
"if len(items) != len(IRIS_INSTANCE_DETAILS):
    module.fail_json(msg="Unexpected IRIS qlist output format", output=stdout)"
should be:
"if len(items) < len(IRIS_INSTANCE_DETAILS):
    module.fail_json(msg="Unexpected IRIS qlist output format", output=stdout)"
as this array
"IRIS_INSTANCE_DETAILS"
has an extra member that usually does not exist
"iris_qlist_extra_field_not_in_documentation"

What does everyone think?

Discussion (0)1
Log in or sign up to continue