From cc3c544c6b55fcda5d0fe89dcbd5511af69e27ea Mon Sep 17 00:00:00 2001 From: Gunther Hagleitner Date: Thu, 2 Feb 2012 22:39:06 -0800 Subject: [PATCH] whitespace stuff --- utils/env_gen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/env_gen.py b/utils/env_gen.py index c29727ed..4d47c18b 100755 --- a/utils/env_gen.py +++ b/utils/env_gen.py @@ -89,6 +89,7 @@ def generate_os_env(fh, cfg): write_env('OS_USERNAME', 'demo', fh) write_env('OS_AUTH_URL', 'http://%s:5000/v2.0', fh) + def generate_local_rc(fn=None): if not fn: fn = DEF_FN @@ -104,13 +105,15 @@ def generate_local_rc(fn=None): generate_nova_env(fh, cfg) generate_os_env(fh, cfg) + def main(): opts = optparse.OptionParser() opts.add_option("-o", "--output", dest="filename", help="write output to FILE", metavar="FILE") (options, args) = opts.parse_args() generate_local_rc(options.filename) - print("Check file \"%s\" for your environment configuration." % (os.path.normpath(fn))) + print("Check file \"%s\" for your environment configuration." \ + % (os.path.normpath(options.filename))) return 0