Skip to content

Commit

Permalink
Do not clobber webhdfs host if manually specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwardrop committed Oct 9, 2020
1 parent fdfb4d3 commit a33052a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omniduct/filesystems/webhdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def get_host_and_set_namenodes(duct, cluster, conf_path):
return random.choice(duct.namenodes)

self._host = partial(get_host_and_set_namenodes, cluster=auto_conf_cluster, conf_path=auto_conf_path)
else:
self._host = self.namenodes
elif not self._host and namenodes:
self._host = random.choice(self.namenodes)

self.__webhdfs = None
self.__webhdfs_kwargs = kwargs
Expand Down

0 comments on commit a33052a

Please sign in to comment.