Merge "Fix TypeError for Indicators resource"

This commit is contained in:
Zuul 2019-09-02 14:45:52 +00:00 committed by Gerrit Code Review
commit ab8798eef3

View File

@ -33,13 +33,14 @@ class StaticDriver(DriverBase):
cls._config = config
cls._indicators = memoize.PersistentDict()
cls._indicators.update(
config.get('SUSHY_EMULATOR_INDICATOR_LEDS', {}))
if hasattr(cls._indicators, 'make_permanent'):
cls._indicators.make_permanent(
config.get('SUSHY_EMULATOR_STATE_DIR'), 'indicators')
cls._indicators.update(
config.get('SUSHY_EMULATOR_INDICATOR_LEDS', {}))
return cls
@property