You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _state_merged(self, want, have):
""" The command generator when state is merged
:rtype: A list
:returns: the xml necessary to migrate the current configuration
to the desired configuration
"""
{{ resource }}_xml = []
for child in want:
{{ resource }} = build_root_xml_node("{{ resource }}")
{{ resource_singular }}= build_child_xml_node({{ resource }}, "{{ resource_singular }}")
build_child_xml_node(
{{ resource_singular }}, "{{ resource_key_name }}", child["{{ resource_key_name }}"]
)
return {{ resource }}_xml
Additional codegen could be implemented based on the schema of the resource.
The text was updated successfully, but these errors were encountered:
It should be possible to generate the code for
def _state_merged
methodTwo additional pieces of information are required in order to accomplish the codegen
Proposal:
Add RESOURCE_KEY_NAMEand RESOURCE_SINGULAR to template:
This would allow the template to be:
Additional codegen could be implemented based on the schema of the resource.
The text was updated successfully, but these errors were encountered: