mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-21 17:29:59 -05:00
dict.itervalues is deprecated in Python3. Fixing samples to call method dict.values() works for Python 2.7 & 3
This commit is contained in:
parent
8896116eb4
commit
100d723904
@ -56,7 +56,7 @@ class BackupJobList(object):
|
||||
job_list = details_client.list()
|
||||
|
||||
table = []
|
||||
for info in job_list.itervalues():
|
||||
for info in job_list.values():
|
||||
row = [info.start_time.strftime("%b %d %Y %H:%M"),
|
||||
info.duration,
|
||||
info.type,
|
||||
|
Loading…
Reference in New Issue
Block a user