Added NodeManager API calls for inspecting the slicename -> XID mapping and slice...
[nodemanager.git] / ticket.py
index 62aeb6f..b50a76e 100644 (file)
--- a/ticket.py
+++ b/ticket.py
@@ -12,8 +12,8 @@ GPG = '/usr/bin/gpg'
 
 def sign(data):
     """Return <data> signed with the default GPG key."""
-    msg = dumps((data,))
-    p = _popen_gpg('--armor', '--sign')
+    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()
     signed_msg = p.stdout.read()