]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port violin driver to Python 3
authorVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 17:01:57 +0000 (19:01 +0200)
committerVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 21:21:05 +0000 (23:21 +0200)
commit1874f7cfae6bdfb30a7ed1877f4534a8f1f8852a
treeae4f83a32790bb727ad36d2151c06d8f2fb8b8aa
parenta37618f55b44d8ffc5740632d251d8c53c348418
Port violin driver to Python 3

* Replace dict.items()[0] with list(dict.items())[0], same for
  dict.values()
* Replace dict.iteritems() with dict.items()
* Replace dict.itervalues() with dict.values()
* Replace a/b with a//b to get integer on Python 3.
* test_get_active_fc_targets(): ignore order when comparing active
  FC targets. On Python 3, the hash function is randomized and so
  dictionaries values are returned in a random order.

Partial-Implements: blueprint cinder-python3
Change-Id: If2c50606ae68b7f645bfdbe5aaf7510a512e709a
cinder/tests/unit/test_v7000_fcp.py
cinder/volume/drivers/violin/v6000_common.py
cinder/volume/drivers/violin/v6000_fcp.py
cinder/volume/drivers/violin/v6000_iscsi.py
cinder/volume/drivers/violin/v7000_common.py
cinder/volume/drivers/violin/v7000_fcp.py
tests-py3.txt