🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@jkrukoff-cb
Copy link
Contributor

This narrows the match for things considered to be t2 instances to only
those types that start with "t2.". Previously there was a class of
(invalid) instance types, such as "2b.something" or "t5.something" that
would cause an error on boolean parsing by matching one regex and not
the other.

This uses conditional logic to identify the non-t2 case, since I don't have a good method for implementing the inverse regular expression without negative lookahead assertions, which re2 doesn't support.

This narrows the match for things considered to be t2 instances to only
those types that start with "t2.". Previously there was a class of
(invalid) instance types, such as "2b.something" or "t5.something" that
would cause an error on boolean parsing by matching one regex and not
the other.
@jkrukoff-cb jkrukoff-cb changed the title [master]: Narrow t2 selection criteria. Narrow t2 selection criteria. Jul 31, 2018
@antonbabenko antonbabenko merged commit 072096d into terraform-aws-modules:master Aug 18, 2018
@antonbabenko
Copy link
Member

This is very neat fix. Thank you for contribution!

v1.10.0 has been released.

Sebor pushed a commit to Sebor/terraform-aws-ec2-instance that referenced this pull request Aug 6, 2020
This narrows the match for things considered to be t2 instances to only
those types that start with "t2.". Previously there was a class of
(invalid) instance types, such as "2b.something" or "t5.something" that
would cause an error on boolean parsing by matching one regex and not
the other.
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants