Merge "Allow setting # of retries in the binary"

This commit is contained in:
Jenkins 2013-07-12 15:17:03 +00:00 committed by Gerrit Code Review
commit 65e5ef7b81
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ def get_conn(options):
return Connection(options.auth,
options.user,
options.key,
options.retries,
auth_version=options.auth_version,
os_options=options.os_options,
snet=options.snet,
@ -1313,6 +1314,8 @@ Examples:
parser.add_option('-K', '--key', dest='key',
default=environ.get('ST_KEY'),
help='Key for obtaining an auth token.')
parser.add_option('-R', '--retries', type=int, default=5, dest='retries',
help='The number of times to retry a failed connection.')
parser.add_option('--os-username',
metavar='<auth-user-name>',
default=environ.get('OS_USERNAME'),