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:
:param path: The path, eg. src\data-hub\stage-discovery-microservice\deployment
'''
name = path.split(os.path.normpath('/'))[-2]
if 'microservice' in name:
name = '-'.join(name.split('-')[:-1])
if name == 'message-broker':
name = 'rabbit-mq'
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