output format (type) of gatherer 'corosync.conf' when requesting e.g. 'totem.interface' #125
-
I have seen some inconsistency (?) in the response of When /etc/corosync/corosync.conf contains two interfaces, the gatherer returns an array holding 2 objects like If only one interface is defined, the gatherer returns an object and not an array holding only one object (my expectation) And defining three interfaces, the gatherer returns an array holding two elements, the first element is an array holding 2 objects and the second element is an object. My expectation was to get an array holding 3 objects When trying to use some more complex processing for the expectations like
How can this be done, if the resulting datatype of 'facts.corosync_interfaces' is changing regarding the content of the retrieved config file? So is this behavior intentional? What do I missing? The same happens for Additional info: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
And a second (related) question:
Intentional? Note: It's not the gatherer, who added the '.0' as a
shows. It's added during the evaluation of the gatherer result inside wanda? |
Beta Was this translation helpful? Give feedback.
-
most probably a bug, I am tracking this and we'll get you ASAP |
Beta Was this translation helpful? Give feedback.
-
@angelabriel Fix here: trento-project/agent#155 |
Beta Was this translation helpful? Give feedback.
@angelabriel Fix here: trento-project/agent#155