k3s/pkg/volume/rbd
Kubernetes Submit Queue a7e76475ef
Merge pull request #54556 from cofyc/fix_cmd_not_found
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

RBD Plugin: Fix bug in checking command not found error.

**What this PR does / why we need it**:

Fix bug in error checking logic. 

`Error()` method of command not found error returned from `command.Run/Output` is not "executable file not found in $PATH". Actually, it's `exec: "<command>": executable file not found in $PATH`.

I followed the logic in https://github.com/kubernetes/kubernetes/blob/v1.9.0-alpha.1/pkg/kubectl/cmd/util/editor/editor.go#L129 to detect command not found error.


**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

https://play.golang.org/p/yZJxtouUQL

**Release note**:

```release-note
NONE
```
2017-11-18 07:32:22 -08:00
..
BUILD RBD Plugin: No need to acquire advisory lock any more! 2017-10-25 18:31:57 +08:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00
attacher.go Rename Detach() parameter. 2017-10-31 10:55:19 +01:00
disk_manager.go RBD Plugin: Implement Attacher/Detacher interfaces. 2017-10-25 17:43:17 +08:00
doc.go
rbd.go Merge pull request #54696 from jsafrane/fix-rbd-exec 2017-10-27 14:38:28 -07:00
rbd_test.go Tmpdir can be a symlink, also fake mount needs to call nested mounter 2017-11-03 22:21:29 -04:00
rbd_util.go Merge pull request #54556 from cofyc/fix_cmd_not_found 2017-11-18 07:32:22 -08:00