diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-25 17:51:49 -0800 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-01-25 17:51:49 -0800 |
| commit | be28eceff7b0a7a1dc33c3ade3ab221c6b1c8acd (patch) | |
| tree | d0d71f4baae6f8da19e8e5389144d45123df5a66 /bin/nova-spoolsentry | |
| parent | bbea3a093f3e9be5052a2e64b6d5d0b909ae33ee (diff) | |
| parent | 5e4259ce6deb227b778acf23770e35f786c9c3d0 (diff) | |
Merge trunk.
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: |
