client/tools/rhn-virtualization/virtualization/poller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7c9386db278b848c317b1718d2331cb3078f0d51 Author: Milan Zazrivec mzazrivec@redhat.com Date: Wed Oct 26 17:24:16 2011 +0200
742811 - RHEV: handle no-guests situation correctly
This fix is to avoid traceback:
File "/usr/share/rhn/virtualization/support.py", line 95, in refresh domain_list = domains.values() AttributeError: 'NoneType' object has no attribute 'values'
diff --git a/client/tools/rhn-virtualization/virtualization/poller.py b/client/tools/rhn-virtualization/virtualization/poller.py index 8b96f0d..9a7eea5 100644 --- a/client/tools/rhn-virtualization/virtualization/poller.py +++ b/client/tools/rhn-virtualization/virtualization/poller.py @@ -151,7 +151,7 @@ def poll_through_vdsm():
if not len(domains['vmList']): # No domains, exit. - return + return {}
state = {} for domain in domains['vmList']: