projects
/
osm
/
osmclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f68f84f
)
do not add empty config for vim
90/5690/1
author
Mike Marchetti
<mmarchetti@sandvine.com>
Wed, 15 Nov 2017 21:22:14 +0000
(16:22 -0500)
committer
Mike Marchetti
<mmarchetti@sandvine.com>
Wed, 15 Nov 2017 21:22:14 +0000
(16:22 -0500)
- empty config will cause RO to fail vim create
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
osmclient/v1/vim.py
patch
|
blob
|
history
diff --git
a/osmclient/v1/vim.py
b/osmclient/v1/vim.py
index
dd6a5e0
..
4230cd4
100644
(file)
--- 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)