forked from fabric8io/kubernetes-client
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fabric8io#3568: Pod upload file fails if file is directly in root…
… path Pod file upload seems be be creating invalid exec command for upload if the file is directly in root path e.g. `/cp.log`. We create parent directory of file by creating a substring based on last index of `/`. This returns an empty string for a string like `/cp.log`. Assume directory path to be `/` when directory is returned as empty string. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
- Loading branch information
1 parent
173fa34
commit f08cad0
Showing
3 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters