-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lts/log_group): the log group supports enterprise_project_id #5875
Conversation
output "is_set_epsId" { | ||
value = try([for v in data.huaweicloud_lts_groups.test.groups : v.enterprise_project_id if | ||
v.id == huaweicloud_lts_group.test.id][0] == huaweicloud_lts_group.test.enterprise_project_id, false) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output "is_set_epsId" { | |
value = try([for v in data.huaweicloud_lts_groups.test.groups : v.enterprise_project_id if | |
v.id == huaweicloud_lts_group.test.id][0] == huaweicloud_lts_group.test.enterprise_project_id, false) | |
} | |
locals { | |
eps_filter_result = [for v in data.huaweicloud_lts_groups.test.groups : v.enterprise_project_id == huaweicloud_lts_group.test.enterprise_project_id if v.id == huaweicloud_lts_group.test.id] | |
} | |
output "is_eps_return_and_matched" { | |
value = length(local.eps_filter_result) > 0 && alltrue(local.eps_filter_result) | |
} |
When make testacc TEST=./huaweicloud/services/acceptance/lts TESTARGS='-run TestAccLtsGroup' make testacc TEST=./huaweicloud/services/acceptance/lts TESTARGS='-run TestAccDataSourceGroups_basic' |
When
make testacc TEST=./huaweicloud/services/acceptance/lts TESTARGS='-run TestAccLtsGroup' make testacc TEST=./huaweicloud/services/acceptance/lts TESTARGS='-run TestAccDataSourceGroups_basic' |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR has been approved by: @Lance52259
/approve
/lgtm
What this PR does / why we need it:
Add enterprise_project_id parameter for log group resource and DataSource.
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)fixes #xxx
Special notes for your reviewer:
Release note:
PR Checklist
Documentation updated.
Schema updated.
CheckDeleted.
a. During query operation (Read Context)
aa. Resource not found
>>>>>> Paste the screenshot here <<<<<<
b. During delete/disassociate/unbind operation (Delete Context)
ba. Resource not found
>>>>>> Paste the screenshot here <<<<<<