whitespace stuff
This commit is contained in:
parent
6fbe0cf711
commit
cc3c544c6b
@ -89,6 +89,7 @@ def generate_os_env(fh, cfg):
|
|||||||
write_env('OS_USERNAME', 'demo', fh)
|
write_env('OS_USERNAME', 'demo', fh)
|
||||||
write_env('OS_AUTH_URL', 'http://%s:5000/v2.0', fh)
|
write_env('OS_AUTH_URL', 'http://%s:5000/v2.0', fh)
|
||||||
|
|
||||||
|
|
||||||
def generate_local_rc(fn=None):
|
def generate_local_rc(fn=None):
|
||||||
if not fn:
|
if not fn:
|
||||||
fn = DEF_FN
|
fn = DEF_FN
|
||||||
@ -104,13 +105,15 @@ def generate_local_rc(fn=None):
|
|||||||
generate_nova_env(fh, cfg)
|
generate_nova_env(fh, cfg)
|
||||||
generate_os_env(fh, cfg)
|
generate_os_env(fh, cfg)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
opts = optparse.OptionParser()
|
opts = optparse.OptionParser()
|
||||||
opts.add_option("-o", "--output", dest="filename",
|
opts.add_option("-o", "--output", dest="filename",
|
||||||
help="write output to FILE", metavar="FILE")
|
help="write output to FILE", metavar="FILE")
|
||||||
(options, args) = opts.parse_args()
|
(options, args) = opts.parse_args()
|
||||||
generate_local_rc(options.filename)
|
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
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user