Skip to content

Fix Subdomain Computation of Util function#1629

Open
Armadillidiid wants to merge 1 commit intopulumi:masterfrom
Armadillidiid:patch-1
Open

Fix Subdomain Computation of Util function#1629
Armadillidiid wants to merge 1 commit intopulumi:masterfrom
Armadillidiid:patch-1

Conversation

@Armadillidiid
Copy link
Copy Markdown

The getDomainAndSubdomain function previously incorrectly computed the subdomain for domain names with multiple subdomains. This commit fixes the computation by properly iterating over the domain parts to extract the subdomain. Additionally, it adds a trailing dot to the parent domain for canonicalization.

The getDomainAndSubdomain function previously incorrectly computed the subdomain for domain names with multiple subdomains. This commit fixes the computation by properly iterating over the domain parts to extract the subdomain. Additionally, it adds a trailing dot to the parent domain for canonicalization.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2024

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR

@rshade
Copy link
Copy Markdown
Contributor

rshade commented Jan 10, 2025

/run-example-tests

1 similar comment
@dirien
Copy link
Copy Markdown
Contributor

dirien commented Mar 21, 2026

/run-example-tests

Copy link
Copy Markdown
Contributor

@dirien dirien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clear bug fix for subdomain computation. Single file change.

@dirien dirien enabled auto-merge (squash) March 21, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants