Merge lp:~ewindisch/nova/lp733609 into lp:~hudson-openstack/nova/trunk

Proposed by Erica Windisch
Status: Rejected
Rejected by: Josh Kearney
Proposed branch: lp:~ewindisch/nova/lp733609
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 19 lines (+3/-3)
1 file modified
nova/network/linux_net.py (+3/-3)
To merge this branch: bzr merge lp:~ewindisch/nova/lp733609
Reviewer Review Type Date Requested Status
Rick Harris (community) Disapprove
Soren Hansen (community) Disapprove
Review via email: mp+53114@code.launchpad.net

Description of the change

Removes excess commas and parens. Fixes bug 733609.

To post a comment you must log in.
Revision history for this message
Soren Hansen (soren) wrote :

Once again, I'm at a complete loss as to what the motivation is. I strongly prefer always passing a tuple or a dict when doing string interpolation. Less ambiguity ftw.

Can you explain why you believe that this has any relation to the linked bug at all?

review: Disapprove
Revision history for this message
Rick Harris (rconradharris) wrote :

Hi Eric,

Seeing that https://bugs.launchpad.net/nova/+bug/733609 is now 'Fixed Committed' from another mergeprop, I'm going to agree with Soren here and vote we abandon this mergeprop.

That said, really appreciate the patch submission here, keep them a comin' :-)

review: Disapprove

Unmerged revisions

795. By Erica Windisch

Remove excess parens/commas

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/network/linux_net.py'
2--- nova/network/linux_net.py 2011-03-11 02:44:01 +0000
3+++ nova/network/linux_net.py 2011-03-12 02:19:50 +0000
4@@ -291,13 +291,13 @@
5 for cmd, tables in s:
6 for table in tables:
7 current_table, _ = self.execute('sudo',
8- '%s-save' % (cmd,),
9- '-t', '%s' % (table,),
10+ '%s-save' % cmd,
11+ '-t', table,
12 attempts=5)
13 current_lines = current_table.split('\n')
14 new_filter = self._modify_rules(current_lines,
15 tables[table])
16- self.execute('sudo', '%s-restore' % (cmd,),
17+ self.execute('sudo', '%s-restore' % cmd,
18 process_input='\n'.join(new_filter),
19 attempts=5)
20