git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first draft for GetSliceSshKeys
[plcapi.git]
/
PLC
/
Methods
/
DeleteKey.py
diff --git
a/PLC/Methods/DeleteKey.py
b/PLC/Methods/DeleteKey.py
index
57e9d16
..
e4632ae
100644
(file)
--- a/
PLC/Methods/DeleteKey.py
+++ b/
PLC/Methods/DeleteKey.py
@@
-1,4
+1,5
@@
-# $Id#
+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-39,9
+40,9
@@
class DeleteKey(Method):
raise PLCPermissionDenied, "Key must be associated with your account"
key.delete()
raise PLCPermissionDenied, "Key must be associated with your account"
key.delete()
-
- # Logging variables
- self.event_objects = {'Key': [key['key_id']]}
- self.message = 'Key %d deleted' % key['key_id']
+
+
# Logging variables
+
self.event_objects = {'Key': [key['key_id']]}
+
self.message = 'Key %d deleted' % key['key_id']
return 1
return 1