Added NodeManager API calls for inspecting the slicename -> XID mapping and slice...
[nodemanager.git] / ticket.py
index 8ba00d2..b50a76e 100644 (file)
--- a/ticket.py
+++ b/ticket.py
@@ -12,7 +12,7 @@ GPG = '/usr/bin/gpg'
 
 def sign(data):
     """Return <data> signed with the default GPG key."""
-    msg = dumps((data,))
+    msg = dumps((data,), methodresponse = True)
     p = _popen_gpg('--armor', '--sign', '--keyring', '/etc/planetlab/secring.gpg', '--no-default-keyring')
     p.stdin.write(msg)
     p.stdin.close()