Merge lp:~salvatore-orlando/neutron/bug834572 into lp:neutron/diablo

Proposed by Salvatore Orlando
Status: Merged
Merged at revision: 54
Proposed branch: lp:~salvatore-orlando/neutron/bug834572
Merge into: lp:neutron/diablo
Diff against target: 77 lines (+12/-12)
2 files modified
quantum/plugins/cisco/common/cisco_faults.py (+10/-10)
tests/unit/test_extensions.py (+2/-2)
To merge this branch: bzr merge lp:~salvatore-orlando/neutron/bug834572
Reviewer Review Type Date Requested Status
dan wendlandt Approve
Tyler Smith Approve
Ying Liu Approve
Review via email: mp+73010@code.launchpad.net

Description of the change

Fixing pep8 errors detected in trunk.

To post a comment you must log in.
Revision history for this message
Ying Liu (yinliu2) wrote :

lgtm.

review: Approve
Revision history for this message
Tyler Smith (tylesmit) wrote :

Tests pass and looks good.

review: Approve
Revision history for this message
dan wendlandt (danwent) wrote :

I'm a bit confused here, as when I pull this branch I still get errors:

danwent@ubuntu:~$ bzr branch lp:~salvatore-orlando/quantum/bug834572 quantum-pep8-fixes
Branched 54 revision(s).
danwent@ubuntu:~$ cd quantum-pep8-fixes/
danwent@ubuntu:~/quantum-pep8-fixes$ pep8 .
./extensions/_credential_view.py:31:32: W291 trailing whitespace

Is this different from what others are seeing?

review: Needs Information
Revision history for this message
dan wendlandt (danwent) wrote :

It seems like the pep8 errors in _credential_view are being handled in a
separate bug: https://bugs.launchpad.net/quantum/+bug/834941

My plan is to merge both of these, once we get two reviews.

Dan

On Fri, Aug 26, 2011 at 12:17 PM, dan wendlandt <email address hidden> wrote:

> Review: Needs Information
> I'm a bit confused here, as when I pull this branch I still get errors:
>
> danwent@ubuntu:~$ bzr branch lp:~salvatore-orlando/quantum/bug834572
> quantum-pep8-fixes
> Branched 54 revision(s).
> danwent@ubuntu:~$ cd quantum-pep8-fixes/
> danwent@ubuntu:~/quantum-pep8-fixes$ pep8 .
> ./extensions/_credential_view.py:31:32: W291 trailing whitespace
>
> Is this different from what others are seeing?
> --
>
> https://code.launchpad.net/~salvatore-orlando/quantum/bug834572/+merge/73010
> You are reviewing the proposed merge of
> lp:~salvatore-orlando/quantum/bug834572 into lp:quantum.
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira Networks, Inc.
www.nicira.com | www.openvswitch.org
Sr. Product Manager
cell: 650-906-2650
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Revision history for this message
Sumit Naiksatam (snaiksat) wrote :

Dan, I do see a pep8 error as well. I believe all these have been fixed in a branch proposed for merge:
https://code.launchpad.net/~yinliu2/quantum/bug834941/+merge/73086

Revision history for this message
dan wendlandt (danwent) wrote :

Thanks Sumit! I just merged both of the branches into trunk.

review: Approve
Revision history for this message
Sumit Naiksatam (snaiksat) wrote :

Thanks Dan, just checked, it's clean now after the merge.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'quantum/plugins/cisco/common/cisco_faults.py'
2--- quantum/plugins/cisco/common/cisco_faults.py 2011-08-25 19:34:01 +0000
3+++ quantum/plugins/cisco/common/cisco_faults.py 2011-08-26 09:55:46 +0000
4@@ -71,7 +71,7 @@
5 """
6 code = 450
7 title = 'Portprofile Not Found'
8- explanation = ('Unable to find a Portprofile with'
9+ explanation = ('Unable to find a Portprofile with'
10 + ' the specified identifier.')
11
12
13@@ -87,8 +87,8 @@
14 code = 430
15 title = 'Port not Found'
16 explanation = ('Unable to find a port with the specified identifier.')
17-
18-
19+
20+
21 class CredentialNotFound(webob.exc.HTTPClientError):
22 """
23 subclass of :class:`~HTTPClientError`
24@@ -100,10 +100,10 @@
25 """
26 code = 451
27 title = 'Credential Not Found'
28- explanation = ('Unable to find a Credential with'
29+ explanation = ('Unable to find a Credential with'
30 + ' the specified identifier.')
31-
32-
33+
34+
35 class QosNotFound(webob.exc.HTTPClientError):
36 """
37 subclass of :class:`~HTTPClientError`
38@@ -115,10 +115,10 @@
39 """
40 code = 452
41 title = 'QoS Not Found'
42- explanation = ('Unable to find a QoS with'
43+ explanation = ('Unable to find a QoS with'
44 + ' the specified identifier.')
45-
46-
47+
48+
49 class NovatenantNotFound(webob.exc.HTTPClientError):
50 """
51 subclass of :class:`~HTTPClientError`
52@@ -130,7 +130,7 @@
53 """
54 code = 453
55 title = 'Nova tenant Not Found'
56- explanation = ('Unable to find a Novatenant with'
57+ explanation = ('Unable to find a Novatenant with'
58 + ' the specified identifier.')
59
60
61
62=== modified file 'tests/unit/test_extensions.py'
63--- tests/unit/test_extensions.py 2011-08-24 20:36:32 +0000
64+++ tests/unit/test_extensions.py 2011-08-26 09:55:46 +0000
65@@ -72,10 +72,10 @@
66 index_response = test_app.get("/tweedles")
67 self.assertEqual(200, index_response.status_int)
68 self.assertEqual("resource index", index_response.body)
69-
70+
71 show_response = test_app.get("/tweedles/25266")
72 self.assertEqual({'data': {'id': "25266"}}, show_response.json)
73-
74+
75 def test_resource_extension_with_custom_member_action(self):
76 controller = self.ResourceExtensionController()
77 member = {'custom_member_action': "GET"}

Subscribers

People subscribed via source and target branches