Merge lp:~zulcss/python-cinderclient/1248519 into lp:~ubuntu-server-dev/python-cinderclient/icehouse

Proposed by Chuck Short
Status: Merged
Merge reported by: Chuck Short
Merged at revision: not available
Proposed branch: lp:~zulcss/python-cinderclient/1248519
Merge into: lp:~ubuntu-server-dev/python-cinderclient/icehouse
Diff against target: 93 lines (+75/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/fix-search-opts.patch (+67/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~zulcss/python-cinderclient/1248519
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+203972@code.launchpad.net

Description of the change

Fix for search_opts bug.

To post a comment you must log in.
Revision history for this message
James Page (james-page) :
review: Approve
Revision history for this message
Chuck Short (zulcss) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-12-03 18:36:34 +0000
+++ debian/changelog 2014-01-30 14:10:07 +0000
@@ -1,3 +1,10 @@
1python-cinderclient (1:1.0.7-0ubuntu2) trusty; urgency=medium
2
3 * debian/patches/fix-search-opts.patch: Fix 'search_opts' unexpected keyword
4 argument error (LP: #1248519)
5
6 -- Chuck Short <zulcss@ubuntu.com> Thu, 30 Jan 2014 08:52:32 -0500
7
1python-cinderclient (1:1.0.7-0ubuntu1) trusty; urgency=low8python-cinderclient (1:1.0.7-0ubuntu1) trusty; urgency=low
29
3 * New upstream release.10 * New upstream release.
411
=== added directory 'debian/patches'
=== added file 'debian/patches/fix-search-opts.patch'
--- debian/patches/fix-search-opts.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/fix-search-opts.patch 2014-01-30 14:10:07 +0000
@@ -0,0 +1,67 @@
1commit 2f0863b7d4d20198f496534d5ffef85e68ff45fc
2Author: Xiao Chen <chenxiao@cn.ibm.com>
3Date: Mon Jan 20 15:29:55 2014 +0800
4
5 Fix 'search_opts' unexpected keyword argument error
6
7 When executing 'encryption-type-create' command using resource
8 name, it will use the findall() in base.py, then error will
9 occur because list() in findall() used 'search_opts' argument
10 which list() in VolumeEncryptionTypeManager did not have. Some
11 other command like 'transfer-delete' met same issue.
12
13 This patch will add 'search_opts' argument in list() function
14 in child class to avoid the bug.
15
16 Closes-Bug: #1248519
17 Related-Bug: #1252665
18
19 Change-Id: If1cd8b812af21335e5d4351766539a927a8fbdf4
20diff -Naurp python-cinderclient-1.0.7.orig/cinderclient/v1/volume_encryption_types.py python-cinderclient-1.0.7/cinderclient/v1/volume_encryption_types.py
21--- python-cinderclient-1.0.7.orig/cinderclient/v1/volume_encryption_types.py 2013-10-31 11:15:54.000000000 -0400
22+++ python-cinderclient-1.0.7/cinderclient/v1/volume_encryption_types.py 2014-01-30 09:04:23.585394428 -0500
23@@ -36,7 +36,7 @@ class VolumeEncryptionTypeManager(base.M
24 """
25 resource_class = VolumeEncryptionType
26
27- def list(self):
28+ def list(self, search_opts=None):
29 """
30 List all volume encryption types.
31
32diff -Naurp python-cinderclient-1.0.7.orig/cinderclient/v1/volume_transfers.py python-cinderclient-1.0.7/cinderclient/v1/volume_transfers.py
33--- python-cinderclient-1.0.7.orig/cinderclient/v1/volume_transfers.py 2013-10-31 11:15:54.000000000 -0400
34+++ python-cinderclient-1.0.7/cinderclient/v1/volume_transfers.py 2014-01-30 09:04:23.585394428 -0500
35@@ -64,7 +64,7 @@ class VolumeTransferManager(base.Manager
36 """
37 return self._get("/os-volume-transfer/%s" % transfer_id, "transfer")
38
39- def list(self, detailed=True):
40+ def list(self, detailed=True, search_opts=None):
41 """Get a list of all volume transfer.
42
43 :rtype: list of :class:`VolumeTransfer`
44diff -Naurp python-cinderclient-1.0.7.orig/cinderclient/v2/volume_encryption_types.py python-cinderclient-1.0.7/cinderclient/v2/volume_encryption_types.py
45--- python-cinderclient-1.0.7.orig/cinderclient/v2/volume_encryption_types.py 2013-10-31 11:15:54.000000000 -0400
46+++ python-cinderclient-1.0.7/cinderclient/v2/volume_encryption_types.py 2014-01-30 09:04:23.585394428 -0500
47@@ -36,7 +36,7 @@ class VolumeEncryptionTypeManager(base.M
48 """
49 resource_class = VolumeEncryptionType
50
51- def list(self):
52+ def list(self, search_opts=None):
53 """
54 List all volume encryption types.
55
56diff -Naurp python-cinderclient-1.0.7.orig/cinderclient/v2/volume_transfers.py python-cinderclient-1.0.7/cinderclient/v2/volume_transfers.py
57--- python-cinderclient-1.0.7.orig/cinderclient/v2/volume_transfers.py 2013-10-31 11:15:54.000000000 -0400
58+++ python-cinderclient-1.0.7/cinderclient/v2/volume_transfers.py 2014-01-30 09:04:23.589394428 -0500
59@@ -64,7 +64,7 @@ class VolumeTransferManager(base.Manager
60 """
61 return self._get("/os-volume-transfer/%s" % transfer_id, "transfer")
62
63- def list(self, detailed=True):
64+ def list(self, detailed=True, search_opts=None):
65 """Get a list of all volume transfer.
66
67 :rtype: list of :class:`VolumeTransfer`
068
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2014-01-30 14:10:07 +0000
@@ -0,0 +1,1 @@
1fix-search-opts.patch

Subscribers

People subscribed via source and target branches