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
remove sfa upcalls
[plcapi.git]
/
PLC
/
Methods
/
DeleteNode.py
diff --git
a/PLC/Methods/DeleteNode.py
b/PLC/Methods/DeleteNode.py
index
e62f23c
..
01e382a
100644
(file)
--- a/
PLC/Methods/DeleteNode.py
+++ b/
PLC/Methods/DeleteNode.py
@@
-5,7
+5,6
@@
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Auth import Auth
from PLC.Nodes import Node, Nodes
from PLC.Parameter import Parameter, Mixed
from PLC.Auth import Auth
from PLC.Nodes import Node, Nodes
-from PLC.SFA import SFA
class DeleteNode(Method):
"""
class DeleteNode(Method):
"""
@@
-55,7
+54,4
@@
class DeleteNode(Method):
self.event_objects = {'Node': [node_id], 'Site': [site_id] }
self.message = "Node %d deleted" % node['node_id']
self.event_objects = {'Node': [node_id], 'Site': [site_id] }
self.message = "Node %d deleted" % node['node_id']
- sfa = SFA(self.api)
- sfa.delete_record(node, 'node')
-
return 1
return 1