Hi have the following inside a variable:
[{u'maxDataDiskCount': 2,
u'memoryInMB': 3584,
u'name': u'Standard_DS1',
u'numberOfCores': 1,
u'osDiskSizeInMB': 1047552,
u'resourceDiskSizeInMB': 7168},
{u'maxDataDiskCount': 4,
u'memoryInMB': 7168,
u'name': u'Standard_DS2',
u'numberOfCores': 2,
u'osDiskSizeInMB': 1047552,
u'resourceDiskSizeInMB': 14336},
{u'maxDataDiskCount': 8,
u'memoryInMB': 14336,
u'name': u'Standard_DS3',
u'numberOfCores': 4,
u'osDiskSizeInMB': 1047552,
u'resourceDiskSizeInMB': 28672},
{u'maxDataDiskCount': 16,
u'memoryInMB': 28672,
u'name': u'Standard_DS4',
u'numberOfCores': 8,
u'osDiskSizeInMB': 1047552,
u'resourceDiskSizeInMB': 57344},
{u'maxDataDiskCount': 4,
u'memoryInMB': 14336,
u'name': u'Standard_DS11',
u'numberOfCores': 2,
u'osDiskSizeInMB': 1047552,
u'resourceDiskSizeInMB': 28672}]
I need to get to a given object based on 'name'
Sorry, this is probably super-easy but I'm strugglig like **** with
advanced jinja stuff.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9a29a805-8323-4720-bf65-ceffcb7eafea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.