X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=clientbin%2FsfiAddAttribute.py;fp=clientbin%2FsfiAddAttribute.py;h=89f4a7c5fe90361d03b9a867b5c26d9d24f292ba;hp=6fa51b40c9e1b3cc56f03f2f91caf0d9f32c25c8;hb=04a3f20dc71bf8b3f96b1e3172623aa346a638a7;hpb=c1c136b3042a24604823c6da135308b7c031c234 diff --git a/clientbin/sfiAddAttribute.py b/clientbin/sfiAddAttribute.py index 6fa51b40..89f4a7c5 100755 --- a/clientbin/sfiAddAttribute.py +++ b/clientbin/sfiAddAttribute.py @@ -28,7 +28,6 @@ if command.opts.infile: nodes = f.read().split() f.close() - 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: - 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: - 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()