Skip to content

Commit

Permalink
removed some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Apr 30, 2024
1 parent b9f51cd commit e26917e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions site/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,12 @@ def find_user_tags(meta_tags: list, tags: list) -> dict|None:
"""
Find user_tags from instance metadata.
"""
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 Expand Up @@ -181,7 +176,7 @@ def main():
print("Successfully sent CE registration.")
sys.exit(0)
else:
print(f"Unable to send CE registration. Exiting.")
print("Unable to send CE registration. Exiting.")
sys.exit(1)
else:
print("Failed to retrieve needed parameters. Exiting.")
Expand Down

0 comments on commit e26917e

Please sign in to comment.