From: montesmoreno Date: Thu, 6 Apr 2017 10:07:44 +0000 (+0000) Subject: Fixed bug that generated an error when adding a sdn-controller without user or passwo... X-Git-Tag: v2.0.0~24 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F1513%2F1;p=osm%2Fopenvim.git Fixed bug that generated an error when adding a sdn-controller without user or password. These two parameters are optional Signed-off-by: montesmoreno --- diff --git a/ovim.py b/ovim.py index efdb58b..a1eaffa 100755 --- a/ovim.py +++ b/ovim.py @@ -356,8 +356,8 @@ class ovim(): temp_dict['of_port'] = db_config['port'] temp_dict['of_dpid'] = db_config['dpid'] temp_dict['of_controller'] = db_config['type'] - temp_dict['of_user'] = db_config['user'] - temp_dict['of_password'] = db_config['password'] + temp_dict['of_user'] = db_config.get('user') + temp_dict['of_password'] = db_config.get('password') temp_dict['of_debug'] = self.config['log_level_of']