~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ssh.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-17 04:11:15 UTC
  • mfrom: (1551.9.2 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20061117041115-edacd4c4482528f6
Fix bug in paramiko usage

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()