Skip to content
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

ie s2s rules #14

Merged
merged 17 commits into from
Feb 28, 2024
Merged

ie s2s rules #14

merged 17 commits into from
Feb 28, 2024

Conversation

myromeu
Copy link

@myromeu myromeu commented Feb 6, 2024

No description provided.

func accPortsRangeFromTF(ctx context.Context, tfValue types.List, dst *[]AccessPorts) (diags diag.Diagnostics) {
diags.Append(tfValue.ElementsAs(ctx, dst, false)...)
if diags.HasError() {
return diags
}
// this conversion necessary to validate string with ports
if _, err := toModelPorts(*dst); err != nil {
if _, err := toModelPorts(*dst); err != nil { // TODO: эта проверка вообще лишняя
Copy link
Author

Choose a reason for hiding this comment

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

эта проверка нужна чтобы в методах SingleResource.IsDiffer не обрабатывать ошибку

раньше эта проверка была в каждом методе sync для ресурсов - я решил вынести чтобы не забывать его писать

@EvgenyGri EvgenyGri merged commit c8b7363 into master Feb 28, 2024
1 check passed
@EvgenyGri EvgenyGri deleted the SWARM-344 branch April 8, 2024 16:27
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.

2 participants