Commit cdfe4fc0 authored by Alexander Lercher's avatar Alexander Lercher

Fixed deployment script for message-broker

parent 71008e36
...@@ -20,8 +20,13 @@ def get_microservice_name_from_path(path) -> str: ...@@ -20,8 +20,13 @@ def get_microservice_name_from_path(path) -> str:
:param path: The path, eg. src\data-hub\stage-discovery-microservice\deployment :param path: The path, eg. src\data-hub\stage-discovery-microservice\deployment
''' '''
name = path.split(os.path.normpath('/'))[-2] name = path.split(os.path.normpath('/'))[-2]
if 'microservice' in name: if 'microservice' in name:
name = '-'.join(name.split('-')[:-1]) name = '-'.join(name.split('-')[:-1])
if name == 'message-broker':
name = 'rabbit-mq'
return name return name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment