Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fix for: Made status query handle lack of events better
Browse files Browse the repository at this point in the history
  • Loading branch information
timf committed May 3, 2011
1 parent 3673a1d commit fd6533e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python/epumgmt/main/em_core_status.py
Expand Up @@ -298,11 +298,13 @@ def _latest_controller_state(controller, vm):

ret_state = latest_destate
if latest_destate:
ret_state = latest_destate.extra["state"]
if latest_destate.extra.has_key("de_state"):
ret_state = latest_destate.extra["de_state"]

ret_qlen = latest_qlen
if latest_qlen:
ret_qlen = latest_qlen.extra["last_queuelen_size"]
if latest_qlen.extra.has_key("last_queuelen_size"):
ret_qlen = latest_qlen.extra["last_queuelen_size"]

return ret_state, ret_qlen

Expand Down

0 comments on commit fd6533e

Please sign in to comment.