[MERGE] Include staging in launchpad-login authentication.

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Oct 17 22:50:00 BST 2008

>>>>> "aaron" == Aaron Bentley <aaron at aaronbentley.com> writes:

    aaron>  def _set_auth_user(username, auth=None):
    aaron>      if auth is None:
    aaron>          auth = AuthenticationConfig()
    aaron>      auth.set_credentials(
    aaron>          'Launchpad', 'bazaar.launchpad.net', username, 'ssh')
    aaron> +    auth.set_credentials(
    aaron> +        'Launchpad Staging', 'bazaar.staging.launchpad.net', username, 'ssh')

A simple  auth.set_credentials('Launchpad', '.launchpad.net', username, 'ssh')
should be enough.

AFAIK you can't connect to lp with different credentials and if
the need arise you can define the exceptions *before* the rule as in:

scheme = ssh
host = test.bazaar.launchpad.net
username = jim

scheme = ssh
 # The leading point is special cased to mean the whole domain
host = .launchpad.net
user = joe

BB: comment


More information about the bazaar mailing list