Skip to content

Commit 1506cdc

Browse files
committed
webhdfs: introduce additional temp variable
1 parent 760cc1b commit 1506cdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dvc_webhdfs/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ def fs(self):
5656

5757
protocol = "https" if self.fs_args.get("use_https") else "http"
5858

59+
source_url = f"{protocol}://{host}:{port}/webhdfs/v1"
5960
self.fs_args["data_proxy"] = {
60-
f"{protocol}://{host}:{port}/webhdfs/v1":self.fs_args["data_proxy_target"]
61+
source_url: self.fs_args["data_proxy_target"]
6162
}
6263

6364
fs = WebHDFS(**self.fs_args)

0 commit comments

Comments
 (0)