Merge pull request #84664 from seans3/python-string-replace

Fixes error in go_pkg()
This commit is contained in:
Kubernetes Prow Robot 2019-11-01 18:08:55 -07:00 committed by GitHub
commit 6c75316474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,8 @@ def go_pkg(pkg):
...
)
"""
return go_prefix + "/" + pkg.replace("staging/src/", "vendor/", maxsplit = 1)
count = 1
return go_prefix + "/" + pkg.replace("staging/src/", "vendor/", count)
def openapi_deps():
deps = [