~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/account.py

  • Committer: Vincent Ladeuil
  • Date: 2009-04-29 06:45:12 UTC
  • mfrom: (4304.2.1 367726-ssh-default-user)
  • mto: This revision was merged to the branch mainline in revision 4311.
  • Revision ID: v.ladeuil+lp@free.fr-20090429064512-5wa7iv1vdjmoit64
Respect ~/.ssh/config usernames for bzr+ssh connections

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
def _get_auth_user(auth=None):
81
81
    if auth is None:
82
82
        auth = AuthenticationConfig()
83
 
    username = auth.get_user('ssh', '.launchpad.net', default="")
84
 
    if username == "":
85
 
        username = None
 
83
    username = auth.get_user('ssh', '.launchpad.net')
86
84
    return username
87
85
 
88
86
def _set_auth_user(username, auth=None):