From: Mike Marchetti Date: Wed, 15 Nov 2017 21:22:14 +0000 (-0500) Subject: do not add empty config for vim X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F5690%2F1;p=osm%2Fosmclient.git do not add empty config for vim - empty config will cause RO to fail vim create Signed-off-by: Mike Marchetti --- 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)