From: Thierry Parmentelat Date: Mon, 24 Nov 2008 22:17:52 +0000 (+0000) Subject: log getbootmedium calls X-Git-Tag: PLCAPI-4.3-2~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9eec67cc51b69f9730379d321e9065d533aa424b;hp=079f7af7a8b1fe8cc93c3437275658d3454729c3;p=plcapi.git log getbootmedium calls --- diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index c4e89d4..6e736b7 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -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: