From 100d723904b29db44afa387c81e7c4d5a5cee3d1 Mon Sep 17 00:00:00 2001 From: pgbidkar Date: Wed, 13 Jun 2018 16:57:42 +0530 Subject: [PATCH] dict.itervalues is deprecated in Python3. Fixing samples to call method dict.values() works for Python 2.7 & 3 --- samples/vsphere/backuprestore/backup_job_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/vsphere/backuprestore/backup_job_list.py b/samples/vsphere/backuprestore/backup_job_list.py index fc544e3c..e83d0a5c 100644 --- a/samples/vsphere/backuprestore/backup_job_list.py +++ b/samples/vsphere/backuprestore/backup_job_list.py @@ -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,