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

[bugfix] Prevent error by setting flood_on_encap and prio for aci_end… #1209

Conversation

akinross
Copy link
Collaborator

@akinross akinross commented May 2, 2024

…point_security_group

In f305774 flood_on_encap and prio were removed from schema however in the import/create/update these values were still set.

Which led to the following error:

│ Error: Plugin did not respond

│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ImportResourceState call. The plugin
│ logs may contain more details.

Stack trace from the terraform-provider-aci plugin:

panic: Invalid address to set: []string{"prio"}

Cleaning up the attributes setting from the functions cleaned up the error.

sajagana
sajagana previously approved these changes May 2, 2024
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

Should the data source also still have these attributes in the schema?

@akinross
Copy link
Collaborator Author

akinross commented May 3, 2024

Should the data source also still have these attributes in the schema?

Officially no, but did not want to create changes to the schema since we will be making those changes anyway soon when we are working on the migrate of the resource. But since @sajagana was also asking the same I will add the change.

@akinross akinross requested review from samiib and sajagana May 3, 2024 05:58
@akinross akinross force-pushed the error_for_setting_not_specified_attributes_esg branch from cfe05c2 to b0d4db8 Compare May 3, 2024 05:59
sajagana
sajagana previously approved these changes May 3, 2024
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

gmicol
gmicol previously approved these changes May 3, 2024
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

if EPg is part of a group that does not
a contract for communication.
* `prio` - (Optional) The QoS priority class identifier.
* `annotation` - (Read-Only) Annotation of object Endpoint Security Group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

of -> of the

a contract for communication.
* `prio` - (Optional) The QoS priority class identifier.
* `annotation` - (Read-Only) Annotation of object Endpoint Security Group.
* `description` - (Read-Only) Description of object Endpoint Security Group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

of -> of the

* `prio` - (Optional) The QoS priority class identifier.
* `annotation` - (Read-Only) Annotation of object Endpoint Security Group.
* `description` - (Read-Only) Description of object Endpoint Security Group.
* `name_alias` - (Read-Only) Name Alias of object Endpoint Security Group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

of -> of the

* `name_alias` - (Read-Only) Name Alias of object Endpoint Security Group.
* `match_t` - (Read-Only) The provider label match criteria.
* `pc_enf_pref` - (Read-Only) The preferred policy control.
* `pref_gr_memb` - (Read-Only) Represents parameter used to determine if EPg is part of a group that does not a contract for communication.
Copy link
Collaborator

Choose a reason for hiding this comment

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

EPg -> EPG

@@ -32,18 +32,14 @@ data "aci_endpoint_security_group" "example" {
## Argument Reference ##

* `application_profile_dn` - (Required) Distinguished name of parent Application Profile object.
* `name` - (Required) name of object Endpoint Security Group.
* `name` - (Required) Name of object Endpoint Security Group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

of -> of the

Comment on lines 40 to 42
* `annotation` - (Read-Only) Annotation of object Endpoint Security Group.
* `description` - (Read-Only) Description of object Endpoint Security Group.
* `name_alias` - (Read-Only) Name Alias of object Endpoint Security Group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

of -> of the

* `name_alias` - (Read-Only) Name Alias of object Endpoint Security Group.
* `match_t` - (Read-Only) The provider label match criteria.
* `pc_enf_pref` - (Read-Only) The preferred policy control.
* `pref_gr_memb` - (Read-Only) Represents parameter used to determine if EPg is part of a group that does not a contract for communication.
Copy link
Collaborator

Choose a reason for hiding this comment

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

EPg -> EPG

@akinross akinross dismissed stale reviews from gmicol and sajagana via bc3ac16 May 6, 2024 16:36
@akinross akinross force-pushed the error_for_setting_not_specified_attributes_esg branch from b0d4db8 to bc3ac16 Compare May 6, 2024 16:36
@akinross akinross force-pushed the error_for_setting_not_specified_attributes_esg branch from bc3ac16 to 6f03369 Compare May 7, 2024 06:24
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

@lhercot lhercot merged commit 6ae57b0 into CiscoDevNet:master May 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants