From: Tony Mack Date: Tue, 14 Jul 2009 19:46:02 +0000 (+0000) Subject: in create_cmd_parser, add output/file to options parser X-Git-Tag: sfa-0.9-0@14641~55 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a0ff56262e176b694f774e1b8ceedc11e4022c0a;p=sfa.git in create_cmd_parser, add output/file to options parser --- diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 7cff4976..e48aec78 100755 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -321,7 +321,7 @@ def create_cmd_parser(command, additional_cmdargs = None): choices=("user","slice","sa","ma","node","aggregate", "all"), default="all") - if command in ("resources","show"): + if command in ("resources","show", "list"): parser.add_option("-o", "--output", dest="file", help="output XML to file", metavar="FILE", default=None) @@ -590,7 +590,7 @@ def slices(opts, args): # show rspec for named slice def resources(opts, args): global slicemgr - if args: + if args: slice_cred = get_slice_cred(args[0]) result = slicemgr.get_resources(slice_cred, args[0]) else: