~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ssh.py

Bugfix for paramiko connections

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
            if add is not None: # paramiko >= 1.X.X
230
230
                BZR_HOSTKEYS.add(host, keytype, server_key)
231
231
            else:
232
 
                BZR_HOSTKEYS.set_default(host, {})[keytype] = server_key
 
232
                BZR_HOSTKEYS.setdefault(host, {})[keytype] = server_key
233
233
            our_server_key = server_key
234
234
            our_server_key_hex = paramiko.util.hexify(our_server_key.get_fingerprint())
235
235
            save_host_keys()