[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] append() with multi-line strings
From: |
Thomas Güttler |
Subject: |
[Fab-user] append() with multi-line strings |
Date: |
Wed, 25 Sep 2013 09:30:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 |
I want to use append() with strings containing newlines.
I tried this:
append('.netrc', 'machine source.foo.lan\n login foo_readonly\n password
removed', partial=True)
and I tried it without partial=True.
The lines get added to the file, regardless of existence. They get added again
and again.
fab --version
Fabric 1.7.0
Paramiko 1.11.0
Should I split the lines to a list before calling append()?
Regards,
Thomas
- [Fab-user] append() with multi-line strings,
Thomas Güttler <=