From 9b629441709bb5ba6b5643e095e4639cb5165d8d Mon Sep 17 00:00:00 2001 From: Carlos Lapao Date: Wed, 20 Nov 2024 15:19:55 +0000 Subject: [PATCH] Hotfix 201124001 - Fixed an issue where packer would still be queried during a host update even if it is not necessary --- internal/deploy/resource.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/deploy/resource.go b/internal/deploy/resource.go index 61ced5e..88177e6 100644 --- a/internal/deploy/resource.go +++ b/internal/deploy/resource.go @@ -455,7 +455,7 @@ 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) @@ -463,7 +463,7 @@ func (r *DeployResource) Update(ctx context.Context, req resource.UpdateRequest, // 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) @@ -471,7 +471,7 @@ func (r *DeployResource) Update(ctx context.Context, req resource.UpdateRequest, // 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) @@ -479,7 +479,7 @@ func (r *DeployResource) Update(ctx context.Context, req resource.UpdateRequest, // 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)