Skip to content

Commit

Permalink
Ensure we keep manually added env data. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattops authored Apr 3, 2024
1 parent f4e4476 commit ac9628d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions github_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,11 @@ def process_repo(**component):
break
environments.append(e)

# If no environment data is discovered above, and if environment data has been
# manually added to the SC, ensure we just pass the existing data to the SC update.
if not environments:
environments = component["attributes"]["environments"]

# App insights cloud_RoleName
if repo.language == 'Kotlin' or repo.language == 'Java':
app_insights_config = get_file_json(repo, f"{monorepo_dir_suffix}applicationinsights.json")
Expand Down

0 comments on commit ac9628d

Please sign in to comment.