Skip to content

Commit

Permalink
Merge pull request #39 from fedora-infra/feature/configurable-fas-url
Browse files Browse the repository at this point in the history
Allow a configurable FAS url for staging..
  • Loading branch information
ralphbean committed Jun 25, 2014
2 parents 2abbedc + dcfd724 commit c7f6275
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fedbadges/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ def notification_callback(topic, msg):

def user_exists_in_fas(config, user):
""" Return true if the user exists in FAS. """

fas2 = fedora.client.AccountSystem(
default_url = 'https://admin.fedoraproject.org/accounts/'
fas2 = fedora.client.fas2.AccountSystem(
base_url=config['fas_credentials'].get('base_url', default_url),
username=config['fas_credentials']['username'],
password=config['fas_credentials']['password'],
)
Expand Down

0 comments on commit c7f6275

Please sign in to comment.