Skip to content

Commit

Permalink
Fix for password lookup function in superset_config.py
Browse files Browse the repository at this point in the history
apache/superset#4043 has been fixed

Bug: T201430
Change-Id: I83f9d96681484c4f07eebbc94ce4c3bbe4291bd9
  • Loading branch information
ottomata committed Aug 28, 2018
1 parent 10558f0 commit d30c0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/superset/templates/superset_config.py.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ password_mapping = {
'<%= uri %>': '<%= @password_mapping[uri] %>',
<% end -%>
}
# self is needed because: https://github.com/apache/incubator-superset/issues/4043
def lookup_password(self, uri):

def lookup_password(uri):
return password_mapping.get(str(uri), None)
SQLALCHEMY_CUSTOM_PASSWORD_STORE = lookup_password

Expand Down

0 comments on commit d30c0b6

Please sign in to comment.