whitespace stuff

This commit is contained in:
Gunther Hagleitner 2012-02-02 22:39:06 -08:00
parent 6fbe0cf711
commit cc3c544c6b

View File

@ -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