Skip to content

Commit

Permalink
Fix: Unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Apr 10, 2024
1 parent 1c92f2c commit 2d4febb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/resource_playbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func resourcePlaybookUpdate(ctx context.Context, data *schema.ResourceData, _ in
// ********************************* RUN PLAYBOOK ********************************

// Validate ansible-playbook binary
if Path, validateBinPath := exec.LookPath(ansiblePlaybookBinary); validateBinPath != nil {
if _, validateBinPath := exec.LookPath(ansiblePlaybookBinary); validateBinPath != nil {
diags = append(diags, diag.Diagnostic{
Severity: diag.Error,
Summary: fmt.Sprintf("ERROR [ansible-playbook]: couldn't find executable %s", ansiblePlaybookBinary),
Expand Down Expand Up @@ -638,7 +638,7 @@ func resourcePlaybookUpdate(ctx context.Context, data *schema.ResourceData, _ in
args = append(args, tmpArg)
}

tflog.Info(ctx, fmt.Sprintf("Running Command <%s %s>", ansiblePlaybookBinary, strings.Join(args[:], " ")))
tflog.Info(ctx, fmt.Sprintf("Running Command <%s %s>", ansiblePlaybookBinary, strings.Join(args, " ")))
runAnsiblePlay := exec.Command(ansiblePlaybookBinary, args...)

runAnsiblePlayOut, runAnsiblePlayErr := runAnsiblePlay.CombinedOutput()
Expand Down

0 comments on commit 2d4febb

Please sign in to comment.