parent
9a439fbecf
commit
dec5e790c7
1
AUTHORS
1
AUTHORS
@ -1 +1,2 @@
|
|||||||
Denis Zheleztsov <difrex.punk@gmail.com>
|
Denis Zheleztsov <difrex.punk@gmail.com>
|
||||||
|
Denis Ryabyy <vv1r0x@gmail.com>
|
||||||
|
@ -89,13 +89,7 @@ def get_group(service, app):
|
|||||||
# Return marathon.group
|
# Return marathon.group
|
||||||
def parse_marathon_app_id(marathon_app_id):
|
def parse_marathon_app_id(marathon_app_id):
|
||||||
marathon_app_id = marathon_app_id.split('/')
|
marathon_app_id = marathon_app_id.split('/')
|
||||||
group = ''
|
del(marathon_app_id[-1])
|
||||||
counter = len(marathon_app_id) - 2
|
marathon_app_id.reverse()
|
||||||
i = 0
|
group = ".".join(marathon_app_id)[:-1]
|
||||||
while counter > i:
|
return(group)
|
||||||
group = group + marathon_app_id[counter]
|
|
||||||
if counter != i + 1:
|
|
||||||
group += '.'
|
|
||||||
counter -= 1
|
|
||||||
|
|
||||||
return group
|
|
||||||
|
Loading…
Reference in New Issue
Block a user