Skip to content

Commit

Permalink
Merge "[CE-216] Fix host can not delete in admin dashboard"
Browse files Browse the repository at this point in the history
  • Loading branch information
hightall authored and Gerrit Code Review committed Jan 10, 2018
2 parents d7ffeb2 + 8524352 commit 42cb9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def delete(self, id):
logger.warning("Cannot delete non-existed host")
return False

host_type = h.host.type
host_type = h.type

if ClusterModel.objects(host=h).count():
logger.warning("Host type not found.")
Expand Down

0 comments on commit 42cb9d4

Please sign in to comment.