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
====
[plcapi.git]
/
PLC
/
Methods
/
BlacklistKey.py
diff --git
a/PLC/Methods/BlacklistKey.py
b/PLC/Methods/BlacklistKey.py
index
298e4e3
..
2afd664
100644
(file)
--- a/
PLC/Methods/BlacklistKey.py
+++ b/
PLC/Methods/BlacklistKey.py
@@
-1,5
+1,3
@@
-# $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
@@
-25,7
+23,7
@@
class BlacklistKey(Method):
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')
-
+
def call(self, auth, key_id):
# Get associated key details
keys = Keys(self.api, [key_id])
def call(self, auth, key_id):
# Get associated key details
keys = Keys(self.api, [key_id])
@@
-36,9
+34,9
@@
class BlacklistKey(Method):
# N.B.: Can blacklist any key, even foreign ones
key.blacklist()
# N.B.: Can blacklist any key, even foreign ones
key.blacklist()
-
- # Logging variables
- self.event_objects = {'Key': [key['key_id']]}
- self.message = 'Key %d blacklisted' % key['key_id']
+
+
# Logging variables
+
self.event_objects = {'Key': [key['key_id']]}
+
self.message = 'Key %d blacklisted' % key['key_id']
return 1
return 1