Skip to content

Commit

Permalink
Consistency in the environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer authored and humitos committed Mar 6, 2019
1 parent 6ae9d28 commit f98df7c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def handle(self, *args, **options):
auth = None
user1 = User.objects.filter(pk__gt=0).order_by('pk').first()

if 'READ_THE_DOCS_USERNAME' in os.environ and 'READ_THE_DOCS_PASSWORD' in os.environ:
if 'READTHEDOCS_USERNAME' in os.environ and 'READTHEDOCS_PASSWORD' in os.environ:
# Authenticating allows returning additional useful fields in the API
# See: `ProjectAdminSerializer`
username = os.environ['READ_THE_DOCS_USERNAME']
auth = (username, os.environ['READ_THE_DOCS_PASSWORD'])
username = os.environ['READTHEDOCS_USERNAME']
auth = (username, os.environ['READTHEDOCS_PASSWORD'])
self.stdout.write('Using basic auth for user {username}'.format(username=username))

for slug in options['project_slug']:
Expand Down

0 comments on commit f98df7c

Please sign in to comment.