Skip to content

Instantly share code, notes, and snippets.

@matthewoestreich
Created June 27, 2019 16:06
Show Gist options
  • Save matthewoestreich/57bddbb6f5f864e80e6805c354982aa3 to your computer and use it in GitHub Desktop.
Save matthewoestreich/57bddbb6f5f864e80e6805c354982aa3 to your computer and use it in GitHub Desktop.
# instantiate it
getVeeamLinks = lambda z: {dic["Type"] : dic["Href"] for dic in z for key in dic.keys() if key == 'Type'}
# invoke it
allLinks = getVeeamLinks(lod) # where 'lod' is your list of dicts
print(allLinks)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment