Skip to content

Commit

Permalink
Fixes incorrect slashes used in URL on Windows
Browse files Browse the repository at this point in the history
Addresses issue kelproject#124 (kelproject#124)
  • Loading branch information
dimitarivanov authored Jul 26, 2017
1 parent e8a4629 commit 7b74c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykube/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def api_kwargs(self, **kwargs):
kw["url"] = self.endpoint
else:
operation = kwargs.pop("operation", "")
kw["url"] = op.normpath(op.join(self.endpoint, self.name, operation))
kw["url"] = op.normpath(op.join(self.endpoint, self.name, operation)).replace("\\", "/")
params = kwargs.pop("params", None)
if params is not None:
query_string = urlencode(params)
Expand Down

0 comments on commit 7b74c49

Please sign in to comment.