[pytango] 43/98: beacon: fixed a bug due to removed method.
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:17:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.0
in repository pytango.
commit 4e684b1ff21dca7f6591a33ea37390bc2860a2bc
Author: Sébastien Petitdemange <sebastien.petitdemange at esrf.fr>
Date: Wed Apr 6 17:45:33 2016 +0200
beacon: fixed a bug due to removed method.
---
src/boost/python/databaseds/db_access/beacon.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index cdf335a..892126d 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -148,8 +148,7 @@ class beacon(object):
server_node = self._personal_2_node.get(server_name)
if server_node is None:
- root = self._config.root
- server_node = root.add_node('tango',filename = server_name.replace('/','-'))
+ server_node = static.Node(self._config,filename = 'tango/%s.yml' % server_name.replace('/','_'))
server_node['server'],server_node['personal_name'] = server_name.split('/')
self._personal_2_node[server_name] = server_node
@@ -533,8 +532,9 @@ class beacon(object):
@_info
def get_device_list(self,server_name, class_name ):
- result = []
server_node = self._personal_2_node.get(server_name)
+ if server_node is None:
+ return []
device_list = server_node.get('device')
m = re.compile(class_name.replace('*','.*'))
if isinstance(device_list,list) :
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list