~registry/charms/trusty/neutron-api-mellanox/next

« back to all changes in this revision

Viewing changes to hooks/mellanox/mellanox_config_tools.py

  • Committer: Andrey Yevsyukov
  • Date: 2015-10-29 16:11:55 UTC
  • Revision ID: andreyy@mellanox.com-20151029161155-gioqv02ajt3ypsz2
Fixed Mellanox Config Tools syntax error

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
class MellanoxConfigTools():
260
260
 
261
261
  def __init__(self):
262
 
    debug = os.environ.get("MLNX_DEBUG", "no")
263
262
 
264
 
    if debug == "yes":
265
 
        self._debug = True
266
 
    else:
267
 
        self._debug = False
 
263
    self._debug     = False
 
264
    if os.environ["MLNX_DEBUG"] == 'yes':
 
265
      self._debug   = True
268
266
 
269
267
    self.opensmd    = MellanoxConfigToolsOpensmdService('opensmd')
270
268
    self.openibd    = MellanoxConfigToolsService('openibd')
423
421
  @netmask.setter
424
422
  def netmask(self, v):
425
423
    pass
 
424