X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=clientbin%2FsfiAddSliver.py;h=0ae3e84e6992b6faaf2793b85904e703eb3590d5;hb=f27128bd33db08114f264c4028ae667c962b64c5;hp=93bb5005e6ff7977901e14b783f8a393d1de7ad3;hpb=8e558be62ca1e048cedb76d6036d1acbfa827bd4;p=sfa.git diff --git a/clientbin/sfiAddSliver.py b/clientbin/sfiAddSliver.py index 93bb5005..0ae3e84e 100755 --- a/clientbin/sfiAddSliver.py +++ b/clientbin/sfiAddSliver.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import sys @@ -16,7 +16,7 @@ command.add_nodefile_option() command.prep() if not command.opts.nodefile: - print "Missing node list -- exiting" + print("Missing node list -- exiting") command.parser.print_help() sys.exit(1) @@ -42,5 +42,5 @@ try: except: logger.log_exc("sfiAddSliver failed with nodes %s" % nodes) sys.exit(1) -print >>outfile, request_rspec.toxml() +print(request_rspec.toxml(), file=outfile) sys.exit(0)