rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
330 stars 100 forks source link

cannot set attribute on fact gathering #293

Open Vebryn opened 3 years ago

Vebryn commented 3 years ago

Hello,

Awesome plugin, congrats!

Facts are not displayed into Nodes view. A Java exception occurs after fact gathering.

PLAY RECAP *********************************************************************
sv1                        : ok=1    changed=1    unreachable=0    failed=0
sv2                        : ok=1    changed=1    unreachable=0    failed=0
sv3                        : ok=2    changed=2    unreachable=0    failed=0

java.lang.reflect.InvocationTargetException: Cannot set attribute
        at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1020)
        at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:823)
        at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:431)
        at com.dtolabs.rundeck.core.common.NodeEntryFactory.createFromMap(NodeEntryFactory.java:95)
        at com.dtolabs.rundeck.core.common.NodesYamlParser.parse(NodesYamlParser.java:114)
        at com.dtolabs.rundeck.core.resources.format.ResourceYamlFormatParser.parseDocument(ResourceYamlFormatParser.java:88)

Ansible succeed in creating host-tpl.j2 files into /var/lib/rundeck/.ansible/tmp/. Exception appear after gathering playbook.

Any idea ?

Best regards.