Fix, update the dummynet key.
authorMarta Carbone <marta@prova.iet.unipi.it>
Thu, 23 Apr 2009 16:04:41 +0000 (16:04 +0000)
committerMarta Carbone <marta@prova.iet.unipi.it>
Thu, 23 Apr 2009 16:04:41 +0000 (16:04 +0000)
PLC/Methods/GetDummyBoxMedium.py

index fd5d3e1..fb5297e 100644 (file)
@@ -156,8 +156,8 @@ class GetDummyBoxMedium(Method):
         os.system("rm %s" % (lockfile))
 
         # if all goes fine store the key in the database
-        dummybox['key'] = new_key
-        dummybox.sync()
+        dummybox_info['key'] = new_key
+        dummybox_info.sync()
 
         # return the file's content base64-encoded
         result = file(IMAGE_NAME).read()