Skip to content

Commit a225bc8

Browse files
committed
fix typo
1 parent 4c97102 commit a225bc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

paramiko/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def parse(self, file_obj, parsed_files=None):
8585
# support for Include directive in ssh_config
8686
path = value
8787
# according to SSH documentation if the path is relative, we look forward in ~/.ssh
88-
if os.path.isabs(path) and path[0] != '~':
88+
if os.path.isabs(path) == False and path[0] != '~':
8989
path = '~/.ssh/'+path
9090
#expand the user home path
9191
path = os.path.expanduser(path)
@@ -96,7 +96,7 @@ def parse(self, file_obj, parsed_files=None):
9696
for filename in glob.iglob(path):
9797
if os.path.isfile(filename):
9898
if filename in parsed_files:
99-
raise Exception("Include loop detected in ssh config file: %s" % path)
99+
raise Exception("Include loop detected in ssh config file: %s" % filename)
100100
with open(filename) as fd:
101101
parsed_files.append(filename)
102102
self.parse(fd, parsed_files)

0 commit comments

Comments
 (0)