Fix license enablement utility helpers

We know call "from_database" which can implicitly call "from_file" if
the database config isn't available.
This commit is contained in:
Matthew Jones 2016-01-25 14:07:59 -05:00
parent 01eca729b1
commit 3132d4efee

View File

@ -16,7 +16,7 @@ def get_license(show_key=False):
place on this Tower instance.
"""
license_reader = TaskSerializer()
return license_reader.from_file(show_key=show_key)
return license_reader.from_database(show_key=show_key)
def feature_enabled(name):