Skip to content

Instantly share code, notes, and snippets.

@jdyke

jdyke/massage.py Secret

Last active June 11, 2020 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdyke/bfc841c082c6adaebcadf37fd364bc6d to your computer and use it in GitHub Desktop.
Save jdyke/bfc841c082c6adaebcadf37fd364bc6d to your computer and use it in GitHub Desktop.
massage
def massage(key_data):
if key_data.get("apiTargetKeyDetails"):
targets = []
for target in key_data["apiTargetKeyDetails"]["apiTargets"].keys():
targets.append(target)
key_data["apiTargetKeyDetails"] = ",".join(targets)
return key_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment