mirror of https://github.com/kubernetes/kops.git
Merge pull request #12159 from yadneshk/osp_get_cluster
Incorrect url to the swift container
This commit is contained in:
commit
80b9359500
|
|
@ -487,7 +487,7 @@ func (p *SwiftPath) readPath(opt swiftobject.ListOpts) ([]Path, error) {
|
||||||
// ReadDir implements Path::ReadDir.
|
// ReadDir implements Path::ReadDir.
|
||||||
func (p *SwiftPath) ReadDir() ([]Path, error) {
|
func (p *SwiftPath) ReadDir() ([]Path, error) {
|
||||||
prefix := p.key
|
prefix := p.key
|
||||||
if !strings.HasSuffix(prefix, "/") {
|
if prefix != "" && !strings.HasSuffix(prefix, "/") {
|
||||||
prefix += "/"
|
prefix += "/"
|
||||||
}
|
}
|
||||||
opt := swiftobject.ListOpts{
|
opt := swiftobject.ListOpts{
|
||||||
|
|
@ -500,7 +500,7 @@ func (p *SwiftPath) ReadDir() ([]Path, error) {
|
||||||
// ReadTree implements Path::ReadTree.
|
// ReadTree implements Path::ReadTree.
|
||||||
func (p *SwiftPath) ReadTree() ([]Path, error) {
|
func (p *SwiftPath) ReadTree() ([]Path, error) {
|
||||||
prefix := p.key
|
prefix := p.key
|
||||||
if !strings.HasSuffix(prefix, "/") {
|
if prefix != "" && !strings.HasSuffix(prefix, "/") {
|
||||||
prefix += "/"
|
prefix += "/"
|
||||||
}
|
}
|
||||||
opt := swiftobject.ListOpts{
|
opt := swiftobject.ListOpts{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue