removed issue with double loading services from core-daemon, fixed exceptions noted as not an error previously and updated code to more gracefully handle those cases, fixed issue with add_node when setting node.ype for all nodes

This commit is contained in:
Blake J. Harnden 2018-04-26 14:26:39 -07:00
parent dc751dde2b
commit 4a2810e9b2
5 changed files with 22 additions and 32 deletions

View file

@ -1152,11 +1152,7 @@ class Ns2ScriptedMobility(WayPointMobility):
:rtype: int
"""
nodenum = int(nodenum)
try:
return self.nodemap[nodenum]
except KeyError:
logger.exception("error finding value in node map, ignored and returns node id")
return nodenum
return self.nodemap.get(nodenum, nodenum)
def startup(self):
"""