summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Dewey <john@dewey.ws>2011-01-25 19:14:19 +0000
committerTarmac <>2011-01-25 19:14:19 +0000
commit01e674ac0128e358d9a8c7dbd592c2fc18146dfe (patch)
treeeae9a88fa793644b016c02711f19044378aa40c4
parentd7fb2cc101e2f783acebef4476d592a3df41b293 (diff)
parent87189b3952cdda465a9cbb3df433a3ecba1152db (diff)
downloadnova-01e674ac0128e358d9a8c7dbd592c2fc18146dfe.tar.gz
nova-01e674ac0128e358d9a8c7dbd592c2fc18146dfe.tar.xz
nova-01e674ac0128e358d9a8c7dbd592c2fc18146dfe.zip
I am new to nova, and wanted to fix a fairly trivial bug in order to understand the process.
Corrected some white space issues which pep8 found. John
-rw-r--r--Authors1
-rw-r--r--bin/nova-spoolsentry6
-rw-r--r--nova/tests/test_virt.py2
3 files changed, 4 insertions, 5 deletions
diff --git a/Authors b/Authors
index 608fec523..4b227cc76 100644
--- a/Authors
+++ b/Authors
@@ -21,6 +21,7 @@ Jay Pipes <jaypipes@gmail.com>
Jesse Andrews <anotherjesse@gmail.com>
Joe Heck <heckj@mac.com>
Joel Moore <joelbm24@gmail.com>
+John Dewey <john@dewey.ws>
Jonathan Bryce <jbryce@jbryce.com>
Josh Durgin <joshd@hq.newdream.net>
Josh Kearney <josh.kearney@rackspace.com>
diff --git a/bin/nova-spoolsentry b/bin/nova-spoolsentry
index ab20268a9..c53482852 100644
--- a/bin/nova-spoolsentry
+++ b/bin/nova-spoolsentry
@@ -74,10 +74,8 @@ class SpoolSentry(object):
return rv
def send_data(self, data):
- data = {
- 'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
- 'key': self.key
- }
+ data = {'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
+ 'key': self.key}
req = urllib2.Request(self.sentry_url)
res = urllib2.urlopen(req, urllib.urlencode(data))
if res.getcode() != 200:
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py
index f6800e3d9..0b9b847a0 100644
--- a/nova/tests/test_virt.py
+++ b/nova/tests/test_virt.py
@@ -256,7 +256,7 @@ class IptablesFirewallTestCase(test.TestCase):
':FORWARD ACCEPT [0:0]',
':OUTPUT ACCEPT [349256:75777230]',
'COMMIT',
- '# Completed on Tue Jan 18 23:47:56 2011'
+ '# Completed on Tue Jan 18 23:47:56 2011',
]
def test_static_filters(self):