Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: default value for Presto password should be None #3757

Merged
merged 1 commit into from
May 5, 2019

Conversation

arikfr
Copy link
Member

@arikfr arikfr commented May 2, 2019

What type of PR is this? (check all applicable)

  • Bug Fix

Description

If we pass empty string as a password, PyHive will complain if we don't set the protocol to https as well. This change fixes this by using None as the default value for the password.

Related Tickets & Documents

#3619

port=self.configuration.get('port', 8080),
protocol=self.configuration.get('protocol', 'http'),
username=self.configuration.get('username', 'redash'),
password=self.configuration.get('password'),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change. The rest is just autopep8... 🤦‍♂

@arikfr arikfr merged commit 17aba39 into master May 5, 2019
@arikfr arikfr deleted the presto-password branch May 5, 2019 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant