diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-04-19 03:23:12 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-04-19 03:23:12 +0000 |
| commit | a5e79d58ae508e218a113bfa3976fae369980688 (patch) | |
| tree | 34bd042a6a7ffa305c165f6284c657606f3eee25 /openstackclient/tests/volume/test_find_resource.py | |
| parent | 98604abcda52adffcfda866dc472b23714bfac70 (diff) | |
| parent | f43c1f76559ae8b5b738b7ae8b69b15c379f9145 (diff) | |
| download | python-openstackclient-a5e79d58ae508e218a113bfa3976fae369980688.tar.gz | |
Merge "Defer client imports"
Diffstat (limited to 'openstackclient/tests/volume/test_find_resource.py')
| -rw-r--r-- | openstackclient/tests/volume/test_find_resource.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openstackclient/tests/volume/test_find_resource.py b/openstackclient/tests/volume/test_find_resource.py index 56081966..00cc46a6 100644 --- a/openstackclient/tests/volume/test_find_resource.py +++ b/openstackclient/tests/volume/test_find_resource.py @@ -24,6 +24,13 @@ from openstackclient.tests import utils as test_utils from openstackclient.volume import client # noqa +# Monkey patch for v1 cinderclient +# NOTE(dtroyer): Do here because openstackclient.volume.client +# doesn't do it until the client object is created now. +volumes.Volume.NAME_ATTR = 'display_name' +volume_snapshots.Snapshot.NAME_ATTR = 'display_name' + + ID = '1after909' NAME = 'PhilSpector' |
