log getbootmedium calls
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 24 Nov 2008 22:17:52 +0000 (22:17 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 24 Nov 2008 22:17:52 +0000 (22:17 +0000)
PLC/Methods/GetBootMedium.py

index c4e89d4..6e736b7 100644 (file)
@@ -360,6 +360,13 @@ class GetBootMedium(Method):
                         raise PLCPermissionDenied, "Could not create dir %s"%filedir
 
         
+        # log call
+        if node:
+            self.message='GetBootMedium on node %s - action=%s'%(nodename,action)
+            self.event_objects={'Node': [ node ]}
+        else:
+            self.message='GetBootMedium - generic - action=%s'%action
+
         ### generic media
         if action == 'generic-iso' or action == 'generic-usb':
             if options: