Skip to content

Commit

Permalink
linting fix: remove unused ctx arg
Browse files Browse the repository at this point in the history
Signed-off-by: Dasha Komsa <[email protected]>
  • Loading branch information
d-honeybadger committed Jan 29, 2024
1 parent b11dfd5 commit cb76ced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/ansibleRun/ansibleRun.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (c *external) Update(ctx context.Context, mg resource.Managed) (managed.Ext

// disable checkMode for real action
c.runner.EnableCheckMode(false)
if err := c.runAnsible(ctx, cr); err != nil {
if err := c.runAnsible(cr); err != nil {
return managed.ExternalUpdate{}, fmt.Errorf("running ansible: %w", err)
}

Expand Down Expand Up @@ -473,7 +473,7 @@ func (c *external) handleLastApplied(ctx context.Context, lastParameters *v1alph
return managed.ExternalObservation{}, err
}

if err := c.runAnsible(ctx, desired); err != nil {
if err := c.runAnsible(desired); err != nil {
return managed.ExternalObservation{}, fmt.Errorf("running ansible: %w", err)
}
}
Expand All @@ -485,7 +485,7 @@ func (c *external) handleLastApplied(ctx context.Context, lastParameters *v1alph
return managed.ExternalObservation{ResourceExists: true, ResourceUpToDate: true}, nil
}

func (c *external) runAnsible(ctx context.Context, cr *v1alpha1.AnsibleRun) error {
func (c *external) runAnsible(cr *v1alpha1.AnsibleRun) error {
dc, _, err := c.runner.Run()
if err != nil {
return err
Expand Down

0 comments on commit cb76ced

Please sign in to comment.