Skip to content

Is there a way to add new keys as part of the saving the state to json file. #22

@chcheruk

Description

@chcheruk

Mapping is pretty helpful to extract and generate the expected output. I am having issue adding new key/values and just curious how i can add new keys to json output?

This is the mapping details.
{'enableRbac': <alchemize.mapping.Attr object at 0x10a1eac10>, 'attr-chandra': <alchemize.mapping.Attr object at 0x10a1eae50>, 'something': <alchemize.mapping.Attr object at 0x10a1eab90>, 'fqdn': <alchemize.mapping.Attr object at 0x10a1eac90>, 'networkProfile': <alchemize.mapping.Attr object at 0x10a1ead10>, 'dnsPrefix': <alchemize.mapping.Attr object at 0x10a1eacd0>, 'tags': <alchemize.mapping.Attr object at 0x10a1ead50>, 'type': <alchemize.mapping.Attr object at 0x10a1ead90>, 'addonProfiles': <alchemize.mapping.Attr object at 0x10a1eabd0>, 'name': <alchemize.mapping.Attr object at 0x10a1eac50>}

Added new keys to the mapping object,but not able to get the new state to output file.

[('enableRbac', <alchemize.mapping.Attr object at 0x10a1eac10>), ('attr-chandra', <alchemize.mapping.Attr object at 0x10a1eae50>), ('something', <alchemize.mapping.Attr object at 0x10a1eab90>), ('fqdn', <alchemize.mapping.Attr object at 0x10a1eac90>), ('networkProfile', <alchemize.mapping.Attr object at 0x10a1ead10>), ('dnsPrefix', <alchemize.mapping.Attr object at 0x10a1eacd0>), ('tags', <alchemize.mapping.Attr object at 0x10a1ead50>), ('type', <alchemize.mapping.Attr object at 0x10a1ead90>), ('addonProfiles', <alchemize.mapping.Attr object at 0x10a1eabd0>), ('name', <alchemize.mapping.Attr object at 0x10a1eac50>)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions