Skip to content

Commit

Permalink
Fix ImportError in contrail-alarm-notify
Browse files Browse the repository at this point in the history
The entry point for contrail-alarm-notify is opserver/alarm_notify.py
There is a module named opserver.py in opserver package. Therefore, the
following statement looks for sandesh.viz.constants in opserver.py
instead of the opserver package.
from opserver.sandesh.viz.constants import UVE_MAP

Change-Id: Ie238fbae3a5195e47bde5edac5e3a6d5f619f17a
Closes-Bug: #1562077
(cherry picked from commit 89e583c)
  • Loading branch information
Sundaresan Rajangam committed Mar 25, 2016
1 parent d040d68 commit 1787800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opserver/alarm_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText

from opserver.sandesh.viz.constants import UVE_MAP
from sandesh.viz.constants import UVE_MAP


class ContrailAlarmInfo(object):
Expand Down

0 comments on commit 1787800

Please sign in to comment.