X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=clientbin%2FsfiListSlivers.py;h=9fdd1c0c3d8d4303f46ae02e4365ee8d2be695bf;hb=0a9902d2a55a0a9ac03601345c4284293669012b;hp=c9611d0c26b10c23ae796d5563991bf1bce96dca;hpb=cedf37c8661ec0b05349274962bf2db9cfa6a24d;p=sfa.git diff --git a/clientbin/sfiListSlivers.py b/clientbin/sfiListSlivers.py index c9611d0c..9fdd1c0c 100755 --- a/clientbin/sfiListSlivers.py +++ b/clientbin/sfiListSlivers.py @@ -8,8 +8,8 @@ from sfa.rspecs.rspec import RSpec from sfa.planetlab.plxrn import xrn_to_hostname command = Commands(usage="%prog [options]", - description="List all slivers in the RSpec. " + - "Use this to display the list of nodes belonging to " + + description="List all slivers in the RSpec. " + + "Use this to display the list of nodes belonging to " + "the slice.") command.add_show_attributes_option() command.prep() @@ -17,13 +17,13 @@ command.prep() if command.opts.infile: rspec = RSpec(command.opts.infile) nodes = rspec.version.get_nodes_with_slivers() - + if command.opts.showatt: defaults = rspec.version.get_default_sliver_attributes() if defaults: print "ALL NODES" for (name, value) in defaults: - print " %s: %s" % (name, value) + print " %s: %s" % (name, value) for node in nodes: hostname = None @@ -35,5 +35,3 @@ if command.opts.infile: atts = rspec.version.get_sliver_attributes(hostname) for (name, value) in atts: print " %s: %s" % (name, value) - -