Skip to content

Commit

Permalink
Merge pull request #187 from Hawkular-QE/DBQuickFix
Browse files Browse the repository at this point in the history
DB wrapper quickfix
  • Loading branch information
vprusa authored Aug 25, 2017
2 parents d49b95a + 14066e2 commit f80fb62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def execute(self, query):

return rows

def get_providers(self):
def get_providers(self, type="Hawkular"):
providers = []
rows = self.execute(self.sql_providers)

for row in rows:
if self.web_session.PROVIDER in row.get('type'):
if type in row.get('type'):
providers.append(row)

return providers
Expand Down

0 comments on commit f80fb62

Please sign in to comment.