Skip to content

Commit

Permalink
Fixed 'no attribute error' while reading DomainSM object in svc-monitor
Browse files Browse the repository at this point in the history
Since DomainSM does not have 'name' attribute which is tried to
be used by dependency tracker caused the issue.
Added 'name' attribute to DomainSM object.

Change-Id: I60711b9afe887aa73b7e86290711528fe1131baa
Closes-bug: #1723338
  • Loading branch information
ymariappan committed Oct 26, 2017
1 parent 9704f7c commit 68b8899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/svc-monitor/svc_monitor/config_db.py
Expand Up @@ -1048,6 +1048,7 @@ def __init__(self, uuid, obj_dict=None):
def update(self, obj=None):
if obj is None:
obj = self.read_obj(self.uuid)
self.name = obj['fq_name'][-1]
self.fq_name = obj['fq_name']
# end update

Expand Down

0 comments on commit 68b8899

Please sign in to comment.