Formatting

This commit is contained in:
Jeff Forcier 2012-11-05 17:34:49 -08:00
parent 0a276ac34b
commit 0981c25cd8
1 changed files with 19 additions and 20 deletions

View File

@ -157,8 +157,8 @@ class SSHConfig (object):
host = socket.gethostname().split('.')[0] host = socket.gethostname().split('.')[0]
fqdn = socket.getfqdn() fqdn = socket.getfqdn()
homedir = os.path.expanduser('~') homedir = os.path.expanduser('~')
replacements = {'controlpath' : replacements = {
[ 'controlpath': [
('%h', config['hostname']), ('%h', config['hostname']),
('%l', fqdn), ('%l', fqdn),
('%L', host), ('%L', host),
@ -167,8 +167,7 @@ class SSHConfig (object):
('%r', remoteuser), ('%r', remoteuser),
('%u', user) ('%u', user)
], ],
'identityfile' : 'identityfile': [
[
('~', homedir), ('~', homedir),
('%d', homedir), ('%d', homedir),
('%h', config['hostname']), ('%h', config['hostname']),