From 997e4ba5a584cdd78200ba4ea2aa3f6afa885ded Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Fri, 10 Apr 2009 17:00:33 +0000 Subject: [PATCH] Verbose messaging. We should import a logger here... --- cmdline/configSfi.sh | 6 +++--- cmdline/sfi.py | 15 +++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/cmdline/configSfi.sh b/cmdline/configSfi.sh index 9f7a8f14..714a2f86 100644 --- a/cmdline/configSfi.sh +++ b/cmdline/configSfi.sh @@ -4,10 +4,10 @@ #export TEST_USER_2=$SFI_AUTH.Hartman_John export SFI_AUTH=plc.princeton -export SFI_USER=$SFI_AUTH.tmack +export SFI_USER=$SFI_AUTH.faiyaza #export SFI_REGISTRY=http://128.112.139.120:12345/ #export SFI_SM=http://128.112.139.120:12346/ -export SFI_REGISTRY=http://128.112.139.90:12345/ -export SFI_SM=http://128.112.139.90:12346/ +export SFI_REGISTRY=http://www.planet-lab.org:12345/ +export SFI_SM=http://www.vini-veritas.org:12346/ diff --git a/cmdline/sfi.py b/cmdline/sfi.py index e106eb5d..d3aa6beb 100755 --- a/cmdline/sfi.py +++ b/cmdline/sfi.py @@ -304,14 +304,17 @@ def main(): (cmd_opts, cmd_args) = create_cmd_parser(command).parse_args(args[1:]) verbose = options.verbose if verbose : - print options.registry, options.sm, options.dir, options.verbose,\ - options.user, options.auth - print command + print "Resgistry %s, sm %s, dir %s, user %s, auth %s" % (options.registry, + options.sm, + options.dir, + options.user, + options.auth) + print "Command %s" %command if command in ("resources"): - print cmd_opts.format + print "resources cmd_opts %s" %cmd_opts.format elif command in ("list","show","remove"): - print cmd_opts.type - print cmd_args + print "cmd_opts.type %s" %cmd_opts.type + print "cmd_args %s" %cmd_args set_servers(options) -- 2.43.0