Skip to content

Commit

Permalink
temp debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kreynoldsf5 committed Apr 26, 2024
1 parent ffec410 commit 5ebd0de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,17 @@ def find_user_tags(meta_tags: list, tags: list) -> dict|None:
Find user_tags from instance metadata.
Return a dict with all b64 decoded tags needed for this service.
"""
print("DEBUG")
print(f"meta_tags: {meta_tags}")
print(f"tags: {tags}")
try:
all_tags = meta_tags[0].get("userTags", [])
print(f"all_tags: {all_tags}")
user_tags = {}
tag_list = [t for t in all_tags if t.get("name") in tags]
for tag in tag_list:
user_tags[tag["name"]] = tag["value"]
print(f"user_tags: {user_tags}")
except Exception as e:
return None
if len(user_tags) == len(tags):
Expand Down

0 comments on commit 5ebd0de

Please sign in to comment.