X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=clientbin%2FsfiListSlivers.py;h=83edd3cf4322b0424c902270d049eedc2e257222;hb=78e5fb75e3793ae9dfce7f1bbd4a2b0f27b7ecc6;hp=9fdd1c0c3d8d4303f46ae02e4365ee8d2be695bf;hpb=04a3f20dc71bf8b3f96b1e3172623aa346a638a7;p=sfa.git diff --git a/clientbin/sfiListSlivers.py b/clientbin/sfiListSlivers.py index 9fdd1c0c..83edd3cf 100755 --- a/clientbin/sfiListSlivers.py +++ b/clientbin/sfiListSlivers.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python3 import sys from sfa.client.sfi_commands import Commands @@ -21,17 +21,17 @@ if command.opts.infile: if command.opts.showatt: defaults = rspec.version.get_default_sliver_attributes() if defaults: - print "ALL NODES" + print("ALL NODES") for (name, value) in defaults: - print " %s: %s" % (name, value) + print(" %s: %s" % (name, value)) for node in nodes: hostname = None if node.get('component_id'): hostname = xrn_to_hostname(node['component_id']) if hostname: - print hostname + print(hostname) if command.opts.showatt: atts = rspec.version.get_sliver_attributes(hostname) for (name, value) in atts: - print " %s: %s" % (name, value) + print(" %s: %s" % (name, value))