From 865caedd9a963f953338aea9c9aacdf518810388 Mon Sep 17 00:00:00 2001 From: Prince Sunny Date: Fri, 27 Jul 2018 16:10:48 -0700 Subject: [PATCH] Fixed the confirm prompt to be before stop service (#290) --- config/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/main.py b/config/main.py index 9d65c3fb9be7..3ecfe8056bfc 100755 --- a/config/main.py +++ b/config/main.py @@ -203,10 +203,10 @@ def load(filename, yes): @click.argument('filename', default='/etc/sonic/config_db.json', type=click.Path(exists=True)) def reload(filename, yes): """Clear current configuration and import a previous saved config DB dump file.""" - #Stop services before config push - _stop_services() if not yes: click.confirm('Clear current config and reload config from the file %s?' % filename, abort=True) + #Stop services before config push + _stop_services() config_db = ConfigDBConnector() config_db.connect() client = config_db.redis_clients[config_db.CONFIG_DB]