Skip to content

Commit

Permalink
Hotfix 201124001
Browse files Browse the repository at this point in the history
- Fixed an issue where packer would still be queried during a host update even if it is not necessary
  • Loading branch information
cjlapao committed Nov 20, 2024
1 parent 7e639b0 commit 9b62944
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/deploy/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,31 +455,31 @@ func (r *DeployResource) Update(ctx context.Context, req resource.UpdateRequest,

// getting parallels version
if version, err := parallelsClient.GetVersion(); err != nil {
resp.Diagnostics.AddError("Error getting parallels version", err.Error())
data.CurrentVagrantVersion = types.StringValue("-")
return
} else {
data.CurrentVersion = types.StringValue(version)
}

// getting git version
if version, err := parallelsClient.GetGitVersion(); err != nil {
resp.Diagnostics.AddError("Error getting git version", err.Error())
data.CurrentVagrantVersion = types.StringValue("-")
return
} else {
data.CurrentGitVersion = types.StringValue(version)
}

// getting packer version
if version, err := parallelsClient.GetPackerVersion(); err != nil {
resp.Diagnostics.AddError("Error getting packer version", err.Error())
data.CurrentVagrantVersion = types.StringValue("-")
return
} else {
data.CurrentPackerVersion = types.StringValue(version)
}

// getting Vagrant version
if version, err := parallelsClient.GetVagrantVersion(); err != nil {
resp.Diagnostics.AddError("Error getting vagrant version", err.Error())
data.CurrentVagrantVersion = types.StringValue("-")
return
} else {
data.CurrentVagrantVersion = types.StringValue(version)
Expand Down

0 comments on commit 9b62944

Please sign in to comment.