From a0ff56262e176b694f774e1b8ceedc11e4022c0a Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 14 Jul 2009 19:46:02 +0000 Subject: [PATCH] in create_cmd_parser, add output/file to options parser --- sfa/client/sfi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.0