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
get rid of svn keywords once and for good
[plcapi.git]
/
PLC
/
Methods
/
DeleteNodeGroup.py
diff --git
a/PLC/Methods/DeleteNodeGroup.py
b/PLC/Methods/DeleteNodeGroup.py
index
8bcee98
..
812af11
100644
(file)
--- a/
PLC/Methods/DeleteNodeGroup.py
+++ b/
PLC/Methods/DeleteNodeGroup.py
@@
-1,4
+1,3
@@
-# $Id$
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
@@
-19,7
+18,7
@@
class DeleteNodeGroup(Method):
accepts = [
Auth(),
Mixed(NodeGroup.fields['nodegroup_id'],
accepts = [
Auth(),
Mixed(NodeGroup.fields['nodegroup_id'],
- NodeGroup.fields['groupname'])
+
NodeGroup.fields['groupname'])
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')
@@
-35,8
+34,8
@@
class DeleteNodeGroup(Method):
nodegroup.delete()
nodegroup.delete()
- # Logging variables
- self.event_objects = {'NodeGroup': [nodegroup['nodegroup_id']]}
- self.message = 'Node group %d deleted' % nodegroup['nodegroup_id']
-
+
# Logging variables
+
self.event_objects = {'NodeGroup': [nodegroup['nodegroup_id']]}
+
self.message = 'Node group %d deleted' % nodegroup['nodegroup_id']
+
return 1
return 1