#NEWLINE# def set_app_ids( app , colour ) : #NEWLINE# #INDENT# app [ 'labels' ] [ 'HAPROXY_APP_ID' ] = app [ 'id' ] #NEWLINE# app [ 'id' ] = ( ( app [ 'id' ] + '-' ) + colour ) #NEWLINE# if ( app [ 'id' ] [ 0 ] != '/' ) : #NEWLINE# #INDENT# app [ 'id' ] = ( '/' + app [ 'id' ] ) #NEWLINE# #UNINDENT# return app