git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bwmon: Fixed extra notification when 1 of 2 limits weren't exceeded.
[nodemanager.git]
/
sm.py
diff --git
a/sm.py
b/sm.py
index
a050ded
..
9ba2c38
100644
(file)
--- a/
sm.py
+++ b/
sm.py
@@
-7,7
+7,7
@@
also to make inter-sliver resource loans. The sliver manager is also
responsible for handling delegation accounts.
"""
responsible for handling delegation accounts.
"""
-# $Id
: sm.py,v 1.28 2007/07/27 18:02:36 dhozac Exp
$
+# $Id$
try: from bwlimit import bwmin, bwmax
except ImportError: bwmin, bwmax = 8, 1000*1000*1000
try: from bwlimit import bwmin, bwmax
except ImportError: bwmin, bwmax = 8, 1000*1000*1000
@@
-91,7
+91,7
@@
def GetSlivers(data, fullupdate=True):
# convert attributes field to a proper dict
attr_dict = {}
# convert attributes field to a proper dict
attr_dict = {}
- for attr in rec.pop('attributes'): attr_dict[attr['name']] = attr['value']
+ for attr in rec.pop('attributes'): attr_dict[attr['
tag
name']] = attr['value']
# squash keys
keys = rec.pop('keys')
# squash keys
keys = rec.pop('keys')