]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Initialize shares variables for RemoteFsDriver(s)
authorEric Harney <eharney@redhat.com>
Wed, 2 Oct 2013 18:11:31 +0000 (14:11 -0400)
committerEric Harney <eharney@redhat.com>
Tue, 15 Oct 2013 14:13:35 +0000 (10:13 -0400)
commit7e37cd80fe12eabaafba5c5c1c8f35413f193e37
tree22e294acac4cc4fb8a4d434dd69e34431f989307
parentc287b15d8108b7b1bf716897aa3079f933ccd832
Initialize shares variables for RemoteFsDriver(s)

self.shares and self._mounted_shares are used by various methods
for RemoteFs-based drivers, but may not be instantiated early enough.

Initialize them in __init__ to ensure they always exist.  (Also fixes
pylint warnings.)

Closes-Bug: #1239741
Change-Id: I0ef884c28b82b7f694cf8a0fb4629c835da11c91
cinder/volume/drivers/nfs.py