Skip to content

Commit

Permalink
Merge pull request #9 from ReeFSpeK/master
Browse files Browse the repository at this point in the history
Fixing octal asterisk bug
  • Loading branch information
bryanmcaninch authored Sep 11, 2023
2 parents 0188f07 + eebad09 commit 9ef9986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudjack-p2.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def main():

# Set name variable to Route53 A record FQDN and truncate trailing dot
aname = resource_record_set['Name'][:-1]
# Replace \052 with * to avoid unexpected octal asterisk in domain name
aname = aname.replace(r'\052', '*')

# Set target variable to the Route53 alias FQDN of CloudFront distribution
if 'AliasTarget' in resource_record_set and 'DNSName' in resource_record_set['AliasTarget']:
Expand Down
2 changes: 2 additions & 0 deletions cloudjack.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def main():

# Set name variable to Route53 A record FQDN and truncate trailing dot
aname = resource_record_set['Name'][:-1]
# Replace \052 with * to avoid unexpected octal asterisk in domain name
aname = aname.replace(r'\052', '*')

# Set target variable to the Route53 alias FQDN of CloudFront distribution
if 'AliasTarget' in resource_record_set and 'DNSName' in resource_record_set['AliasTarget']:
Expand Down

0 comments on commit 9ef9986

Please sign in to comment.