git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autopep8
[sfa.git]
/
clientbin
/
sfiAddAttribute.py
diff --git
a/clientbin/sfiAddAttribute.py
b/clientbin/sfiAddAttribute.py
index
6fa51b4
..
89f4a7c
100755
(executable)
--- a/
clientbin/sfiAddAttribute.py
+++ b/
clientbin/sfiAddAttribute.py
@@
-28,7
+28,6
@@
if command.opts.infile:
nodes = f.read().split()
f.close()
nodes = f.read().split()
f.close()
-
for name in attrs:
print >> sys.stderr, name, attrs[name]
for value in attrs[name]:
for name in attrs:
print >> sys.stderr, name, attrs[name]
for value in attrs[name]:
@@
-36,12
+35,14
@@
if command.opts.infile:
try:
rspec.version.add_default_sliver_attribute(name, value)
except:
try:
rspec.version.add_default_sliver_attribute(name, value)
except:
- logger.log_exc("sfiAddAttribute FAILED on all nodes: %s=%s" % (name, value))
+ logger.log_exc(
+ "sfiAddAttribute FAILED on all nodes: %s=%s" % (name, value))
else:
for node in nodes:
try:
rspec.version.add_sliver_attribute(node, name, value)
except:
else:
for node in nodes:
try:
rspec.version.add_sliver_attribute(node, name, value)
except:
- logger.log_exc ("sfiAddAttribute FAILED on node %s: %s=%s" % (node, name, value))
+ logger.log_exc(
+ "sfiAddAttribute FAILED on node %s: %s=%s" % (node, name, value))
print rspec.toxml()
print rspec.toxml()