From 80be3b32aad1065874f06433f2d8e155fbfde509 Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Wed, 15 Nov 2017 16:22:14 -0500 Subject: [PATCH] do not add empty config for vim - empty config will cause RO to fail vim create Signed-off-by: Mike Marchetti --- osmclient/v1/vim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osmclient/v1/vim.py b/osmclient/v1/vim.py index dd6a5e0..4230cd4 100644 --- a/osmclient/v1/vim.py +++ b/osmclient/v1/vim.py @@ -68,7 +68,8 @@ class Vim(object): if 'config' in vim_access and vim_access['config'] is not None: vim_config = yaml.load(vim_access['config']) - vim_account['datacenter']['config'] = vim_config + if vim_config: + vim_account['datacenter']['config'] = vim_config vim_account = self.update_vim_account_dict(vim_account, vim_access, vim_config) -- 2.25.1