diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-11-20 16:41:16 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-11-21 09:06:42 +0000 |
commit | 082f516a33d14c836cd47293cb29c83ae80e294d (patch) | |
tree | 81ca6d0c76480d08cc1c418b57a05209d9115040 /glustolibs-misc/glustolibs/misc/misc_libs.py | |
parent | 489970dda8cc3fdf0b6c1fd26b1662d3ee853d94 (diff) |
[py2to3] Replace usage of ".iteitems()" attr with ".items()"
Dict attribute called "iteritems()" is not supported in the py3.
So, replace it's usage with another similar attr called "items()".
Change-Id: I130b7f67f0a2d5da5ed6c3d792f5ff024ba148f4
Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
Diffstat (limited to 'glustolibs-misc/glustolibs/misc/misc_libs.py')
-rwxr-xr-x | glustolibs-misc/glustolibs/misc/misc_libs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-misc/glustolibs/misc/misc_libs.py b/glustolibs-misc/glustolibs/misc/misc_libs.py index 7b8010cd9..b66de5efe 100755 --- a/glustolibs-misc/glustolibs/misc/misc_libs.py +++ b/glustolibs-misc/glustolibs/misc/misc_libs.py @@ -557,7 +557,7 @@ def drop_caches(hosts): cmd = "echo 3 > /proc/sys/vm/drop_caches" results = g.run_parallel(hosts, cmd) _rc = True - for host, ret_values in results.iteritems(): + for host, ret_values in results.items(): retcode, _, _ = ret_values if retcode != 0: g.log.error("Unable to drop cache on host %s", host) |