git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9495234
)
- node group names are case sensitive
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 20 Sep 2006 14:41:59 +0000
(14:41 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 20 Sep 2006 14:41:59 +0000
(14:41 +0000)
PLC/NodeGroups.py
patch
|
blob
|
history
diff --git
a/PLC/NodeGroups.py
b/PLC/NodeGroups.py
index
340a74f
..
00a1b20
100644
(file)
--- a/
PLC/NodeGroups.py
+++ b/
PLC/NodeGroups.py
@@
-4,7
+4,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: NodeGroups.py,v 1.
7 2006/09/14 15:45:24 tmack
Exp $
+# $Id: NodeGroups.py,v 1.
8 2006/09/19 19:08:24 mlhuang
Exp $
#
from types import StringTypes
#
from types import StringTypes
@@
-206,7
+206,7
@@
class NodeGroups(Table):
if nodegroup_ids:
sql += " OR nodegroup_id IN (%s)" % ", ".join(map(str, nodegroup_ids))
if names:
if nodegroup_ids:
sql += " OR nodegroup_id IN (%s)" % ", ".join(map(str, nodegroup_ids))
if names:
- sql += " OR name IN (%s)" % ", ".join(api.db.quote(names))
.lower()
+ sql += " OR name IN (%s)" % ", ".join(api.db.quote(names))
sql += ")"
rows = self.api.db.selectall(sql)
sql += ")"
rows = self.api.db.selectall(sql)