1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-25 18:59: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:
pgbidkar 2018-06-13 16:57:42 +05:30
parent 8896116eb4
commit 100d723904

View File

@ -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,