Skip to content

Commit

Permalink
fix: [CDS-104757]: set account_id if present in agent read response e… (
Browse files Browse the repository at this point in the history
#1132)

* fix: [CDS-104757]: set account_id if present in agent read response even though its deprecated

* Create 1132.txt
  • Loading branch information
ashinsabu3 authored Dec 9, 2024
1 parent e893fcf commit fc47972
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changelog/1132.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:fix account_id becoming null in platform_gitops_agent after deprecation
platform_gitops_agent: there was a deprecation of account_id in all harness gitops resources. this introduced a bug in agent resource where
it was not being set at all after it was changed to computed: true.
```
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ func buildCreateAgentRequest(d *schema.ResourceData) *nextgen.V1Agent {

func readAgent(d *schema.ResourceData, agent *nextgen.V1Agent) {
d.SetId(agent.Identifier)
d.Set("account_id", agent.AccountIdentifier)
d.Set("identifier", agent.Identifier)
d.Set("name", agent.Name)
d.Set("description", agent.Description)
Expand Down

0 comments on commit fc47972

Please sign in to comment.