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
fixes transcoding issue for nodes - local nodes were transcoded to None
[plcapi.git]
/
PLC
/
Methods
/
BlacklistKey.py
diff --git
a/PLC/Methods/BlacklistKey.py
b/PLC/Methods/BlacklistKey.py
index
17a0418
..
1c03d6e
100644
(file)
--- a/
PLC/Methods/BlacklistKey.py
+++ b/
PLC/Methods/BlacklistKey.py
@@
-35,7
+35,12
@@
class BlacklistKey(Method):
raise PLCInvalidArgument, "No such key"
key = keys[0]
+ # N.B.: Can blacklist any key, even foreign ones
+
key.blacklist()
+
+ # Logging variables
self.object_ids = [key['key_id']]
+ self.message = 'Key %d blacklisted' % key['key_id']
return 1