diff options
| author | John Dewey <john@dewey.ws> | 2011-01-25 19:14:19 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-01-25 19:14:19 +0000 |
| commit | 01e674ac0128e358d9a8c7dbd592c2fc18146dfe (patch) | |
| tree | eae9a88fa793644b016c02711f19044378aa40c4 /bin/nova-spoolsentry | |
| parent | d7fb2cc101e2f783acebef4476d592a3df41b293 (diff) | |
| parent | 87189b3952cdda465a9cbb3df433a3ecba1152db (diff) | |
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
Diffstat (limited to 'bin/nova-spoolsentry')
| -rw-r--r-- | bin/nova-spoolsentry | 6 |
1 files changed, 2 insertions, 4 deletions
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: |
