Skip to content

Commit

Permalink
Merge pull request #3032 from sjones4/issue-jobs-to-roles
Browse files Browse the repository at this point in the history
Change jobs to roles for dashboard
  • Loading branch information
scragraham authored Mar 26, 2019
2 parents 20d0870 + 060f06e commit 49deffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AppDashboard/lib/app_dashboard_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def get_host_with_role(self, role):
logging.exception(err)
return ''
for node in nodes:
if role in node['jobs']:
if role in node['roles']:
return node['public_ip']
return ''

Expand Down
2 changes: 1 addition & 1 deletion AppDashboard/test/functional/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def setUp(self):
}
])
acc.should_receive('get_role_info').and_return(
[{'jobs': ['shadow', 'login'], 'public_ip':'1.1.1.1'} ]
[{'roles': ['shadow', 'login'], 'public_ip':'1.1.1.1'} ]
)
acc.should_receive('get_database_information').and_return(
{'table':'fake_database', 'replication':1}
Expand Down

0 comments on commit 49deffa

Please sign in to comment.