Skip to content

Fix private gateway ACL update using wrong SDK setter - #329

Open
sudo87 wants to merge 1 commit into
mainfrom
fix/private-gateway-acl-update
Open

Fix private gateway ACL update using wrong SDK setter#329
sudo87 wants to merge 1 commit into
mainfrom
fix/private-gateway-acl-update

Conversation

@sudo87

@sudo87 sudo87 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

resourceCloudStackPrivateGatewayUpdate called SetNetworkid with the private gateway's own ID instead of SetGatewayid, so any acl_id update was rejected by the API with "entity does not exist". Use SetGatewayid, matching ReplaceNetworkACLListParams' actual parameter for updating a private gateway's ACL.

resourceCloudStackPrivateGatewayUpdate called SetNetworkid with the
private gateway's own ID instead of SetGatewayid, so any acl_id update
was rejected by the API with "entity does not exist". Use
SetGatewayid, matching ReplaceNetworkACLListParams' actual parameter
for updating a private gateway's ACL.
@sudo87
sudo87 requested review from sureshanaparti and a lite review from Copilot August 28, 2026 08:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug in the private gateway update path where an ACL replacement request was built with the wrong CloudStack SDK parameter, causing acl_id updates to fail with “entity does not exist”.

Changes:

  • Update resourceCloudStackPrivateGatewayUpdate to call ReplaceNetworkACLListParams.SetGatewayid(d.Id()) instead of SetNetworkid(d.Id()).
  • Align the provider’s update behavior with the CloudStack API parameter used when updating a private gateway’s ACL.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sureshanaparti sureshanaparti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

3 participants