projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added --filter option to command vim-show
[osm/osmclient.git]
/
osmclient
/
v1
/
vim.py
diff --git
a/osmclient/v1/vim.py
b/osmclient/v1/vim.py
index
dd6a5e0
..
849f6dc
100644
(file)
--- a/
osmclient/v1/vim.py
+++ b/
osmclient/v1/vim.py
@@
-66,9
+66,10
@@
class Vim(object):
vim_config = {}
if 'config' in vim_access and vim_access['config'] is not None:
vim_config = {}
if 'config' in vim_access and vim_access['config'] is not None:
- vim_config = yaml.load(vim_access['config'])
+ vim_config = yaml.
safe_
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)
vim_account = self.update_vim_account_dict(vim_account, vim_access, vim_config)