]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Reduce use of eval()
authorEric Harney <eharney@redhat.com>
Fri, 15 Jan 2016 21:52:56 +0000 (16:52 -0500)
committerEric Harney <eharney@redhat.com>
Fri, 15 Jan 2016 21:52:56 +0000 (16:52 -0500)
commit2336d789d4cecd053d93db8e9598aabd89661b33
tree837416e85e783e75a52edd9a97fd2385f8179695
parentaa44c8b28108f1e87d9539e00c5126ff28090848
Reduce use of eval()

Calling eval() is less than ideal security practice,
and does not appear to be needed in these instances.
Convert to ast.literal_eval() which is a safer
mechanism for parsing inputs like this.

Change-Id: I102f28cfa2a643f36a4d4174cef09c6f7576a804
cinder/tests/unit/test_ssh_utils.py
cinder/volume/drivers/emc/emc_vmax_common.py
cinder/volume/drivers/emc/emc_vmax_fc.py
cinder/volume/drivers/fujitsu/eternus_dx_common.py