Всем привет, подскажите пожалуйста как сделать переменую с длиной стрингой:
filename = '/etc/haproxy/haproxy.cfg'
before = '''
#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
#
http://haproxy.1wt.eu/download/1.4/doc/configuration.txt#
#---------------------------------------------------------------------
ещё много всего
'''
after = '''
test2
'''
fabric.contrib.files.sed(filename, before, after, limit='', use_sudo=True)
Получаю такую ошибку:
/test2/g' "$(echo /etc/haproxy/haproxy.cfg)"
Aborting