Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CelianR committed Dec 16, 2024
1 parent c0c3ac4 commit c49c5fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/command/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ func (r *RemoteRunner) Command(name string, args *Args, opts ...pulumi.ResourceO
cmd, err := remote.NewCommand(r.e.Ctx(), r.namer.ResourceName("cmd", name), args.toRemoteCommandArgs(r.config, r.osCommand), utils.MergeOptions(r.options, opts...)...)

if err != nil {
return &RemoteCommand{cmd}, nil
return nil, err
}

return nil, err
return &RemoteCommand{cmd}, nil
}

func (r *RemoteRunner) NewCopyFile(name string, localPath, remotePath pulumi.StringInput, opts ...pulumi.ResourceOption) (pulumi.Resource, error) {
Expand Down Expand Up @@ -236,10 +236,10 @@ func (r *LocalRunner) Command(name string, args *Args, opts ...pulumi.ResourceOp
cmd, err := local.NewCommand(r.e.Ctx(), r.namer.ResourceName("cmd", name), args.toLocalCommandArgs(r.config, r.osCommand), opts...)

if err != nil {
return &LocalCommand{cmd}, nil
return nil, err
}

return nil, err
return &LocalCommand{cmd}, nil
}

func (r *LocalRunner) NewCopyFile(name string, localPath, remotePath pulumi.StringInput, opts ...pulumi.ResourceOption) (pulumi.Resource, error) {
Expand Down

0 comments on commit c49c5fe

Please sign in to comment.