From 37211cfab20e4b7cdde927e152ceef24c6c0d2fc Mon Sep 17 00:00:00 2001 From: Yang Hongyang Date: Wed, 13 Jan 2016 16:29:42 +0800 Subject: [PATCH] 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 --- magnumclient/v1/bays_shell.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/magnumclient/v1/bays_shell.py b/magnumclient/v1/bays_shell.py index 7931f92e..cbe654f9 100644 --- a/magnumclient/v1/bays_shell.py +++ b/magnumclient/v1/bays_shell.py @@ -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)