Closed
Closed
Conversation
Closed
Open
Closed
Open
| path = value | ||
| # According to SSH documentation if the path is relative, | ||
| # we look forward in ~/.ssh | ||
| if (not os.path.isabs(path)) and path[0] != '~': |
| "config file: %s" % filename) | ||
| with open(filename) as fd: | ||
| parsed_files.append(filename) | ||
| self.parse(fd, parsed_files) |
| # Expand the user home path | ||
| path = os.path.expanduser(path) | ||
| if parsed_files is None: | ||
| parsed_files = [] |
|
|
||
| result = self.config.lookup("example.org") | ||
| assert result["hostname"] == "example.org" | ||
| assert result["user"] == "exampleuser2" |
Open