Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chcheruk opened this issue Jun 5, 2019 · 0 comments

Comments

@chcheruk
Copy link

chcheruk commented Jun 5, 2019

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>)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant