mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-22 01:39:58 -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()
|
job_list = details_client.list()
|
||||||
|
|
||||||
table = []
|
table = []
|
||||||
for info in job_list.itervalues():
|
for info in job_list.values():
|
||||||
row = [info.start_time.strftime("%b %d %Y %H:%M"),
|
row = [info.start_time.strftime("%b %d %Y %H:%M"),
|
||||||
info.duration,
|
info.duration,
|
||||||
info.type,
|
info.type,
|
||||||
|
Loading…
Reference in New Issue
Block a user