Skip to content

Commit

Permalink
FIX: Fixed a startup error caused by 922c3ec
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kostyuk committed Mar 11, 2018
1 parent 922c3ec commit 0ebbe83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpl/core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ async def start(self):
self._user_service_raw.create_user("admin", "admin")
self._db_session_manager.get_session().commit()

self._thing_service_raw.enable_all()

is_api_enabled = self._core_config['is_api_enabled']

if is_api_enabled:
Expand Down Expand Up @@ -317,8 +319,6 @@ async def _bootstrap_integrations(self):

self._db_session_manager.remove_session()

self._thing_service_raw.enable_all()

async def shutdown(self):
await self._rest_api.shutdown_server()
self._thing_service_raw.disable_all()

0 comments on commit 0ebbe83

Please sign in to comment.