Always return a config dict for SSH config.
@@ -115,9 +115,9 @@ def _get_private_key(state, key_filename, key_password):
def get_ssh_config(host):
ssh_config = SSHConfig()
user_config_file = path.expanduser('~/.ssh/config')
- if path.exists(user_config_file):
cfg = dict()
+ if path.exists(user_config_file):
with open(user_config_file) as f:
ssh_config.parse(f)
host_config = ssh_config.lookup(host)
