FLEDGE_ROOT path fixes
@@ -306,7 +306,7 @@ async def add_service(request):
_logger.exception("Failed to fetch plugin configuration. %s", str(ex))
raise web.HTTPInternalServerError(reason='Failed to fetch plugin configuration')
elif service_type == 'notification':
- if not os.path.exists(_FLEDGE_ROOT + "services/fledge.services.{}".format(service_type)):
+ if not os.path.exists(_FLEDGE_ROOT + "/services/fledge.services.{}".format(service_type)):
msg = "{} service is not installed.".format(service_type.capitalize())
raise web.HTTPNotFound(reason=msg, body=json.dumps({"message": msg}))
process_name = 'notification_c'
@@ -315,7 +315,7 @@ async def add_service(request):
process_name = 'management'
script = '["services/management"]'
elif service_type == 'dispatcher':
- if not os.path.exists(_FLEDGE_ROOT + "services/fledge.services.{}".format(service_type)):
+ if not os.path.exists(_FLEDGE_ROOT + "/services/fledge.services.{}".format(service_type)):
msg = "{} service is not installed.".format(service_type.capitalize())
raise web.HTTPNotFound(reason=msg, body=json.dumps({"message": msg}))
process_name = 'dispatcher_c'
