Don't use something the shell will escape as a separator. | is now =.

This commit is contained in:
Todd Willey
2010-09-20 23:56:17 -04:00
parent 1542f6a327
commit 4b45ebe4a5
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ class CloudController(object):
if FLAGS.region_list:
regions = []
for region in FLAGS.region_list:
name, _sep, url = region.partition('|')
name, _sep, url = region.partition('=')
regions.append({'regionName': name,
'regionEndpoint': url})
else:

View File

@@ -169,7 +169,7 @@ def DECLARE(name, module_string, flag_values=FLAGS):
DEFINE_list('region_list',
[],
'list of region|url pairs separated by commas')
'list of region=url pairs separated by commas')
DEFINE_string('connection_type', 'libvirt', 'libvirt, xenapi or fake')
DEFINE_integer('s3_port', 3333, 's3 port')
DEFINE_string('s3_host', '127.0.0.1', 's3 host')