1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-22 01:39:58 -05:00

Merge pull request #74 from pgbidkar/master

dict.itervalues is deprecated in Python3. Fixing sample
This commit is contained in:
Tianhao He 2018-06-13 21:50:15 +08:00 committed by GitHub
commit 8957cfad5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,