commit ede9fa6ef4a5af0170e7eac5767b0412bdabda3f
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Thu Aug 29 08:54:03 2013 +0200
Fix getting more results from ESX
vsphere.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vsphere.py b/vsphere.py
index 5109e08..ae81e73 100644
--- a/vsphere.py
+++ b/vsphere.py
@@ -266,7 +266,7 @@ class VSphere:
try:
retrieve_result = result =
self.client.service.RetrievePropertiesEx(_this=self.sc.propertyCollector, specSet=[pfs])
while hasattr(result, "token"):
- result =
self.client.service.ContinueRetrievePropertiesEx(_this=self.sc.propertyCollector,
token=retrieve_result.token)
+ result =
self.client.service.ContinueRetrievePropertiesEx(_this=self.sc.propertyCollector,
token=result.token)
retrieve_result.objects += result.objects
if retrieve_result is None:
return []
Show replies by date