Remove unnecessary check when create bay

After Ibb18d391f991a10c36b2f4a7da791f6722b04a3a is merged, this
check is no longer needed, because the args.timeout will never
be None, it is set to default 0.

Change-Id: I36f275347c2955e688e7c178fee228157063887c
This commit is contained in:
Yang Hongyang 2016-01-13 16:29:42 +08:00
parent e9452a6e7c
commit 37211cfab2

View File

@ -65,8 +65,7 @@ def do_bay_create(cs, args):
opts['node_count'] = args.node_count
opts['master_count'] = args.master_count
opts['discovery_url'] = args.discovery_url
if args.timeout is not None:
opts['bay_create_timeout'] = args.timeout
opts['bay_create_timeout'] = args.timeout
bay = cs.bays.create(**opts)
_show_bay(bay)