Skip to content

Commit

Permalink
Stop using _LE, make heat-engine not die in OpenStack Pike and later
Browse files Browse the repository at this point in the history
"from heat.common.i18n import _LE" can't work in OpenStack releases
later than Ocata. Stop using it, and remove the import.

Fixes F5Networks#166 for Pike.
  • Loading branch information
fghaas committed Sep 26, 2018
1 parent 1692f3a commit 1351334
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions f5_heat/resources/f5_sys_iappservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from heat.common import exception
from heat.common.i18n import _
from heat.common.i18n import _LE
from heat.engine import properties
from heat.engine import resource

Expand Down Expand Up @@ -114,9 +113,7 @@ def _check_iapp_answers(self, prop_name):
self.properties[prop_name]
)
except Exception:
LOG.error(
_LE("'%s' property failed to parse as JSON") % prop_name
)
LOG.error("'%s' property failed to parse as JSON" % prop_name)
raise

def _build_service_dict(self):
Expand Down

0 comments on commit 1351334

Please sign in to comment.