[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] get operation is mangling file names
From: |
Christian Vest Hansen |
Subject: |
Re: [Fab-user] get operation is mangling file names |
Date: |
Tue, 28 Jul 2009 19:23:19 +0200 |
On Tue, Jul 28, 2009 at 7:20 PM, Christian Vest
Hansen<address@hidden> wrote:
> This is by design, actually. If you have multiple hosts and the file
> you want to get is not exactly the same on very host, then 'get' end
> up picking one of them.
In case my explanation got a little confusing, you can read the
documentation for 'get' online. It is probably phrased a bit better:
http://docs.fabfile.org/0.9/api/operations.html#fabric.operations.get
>
> If you are using fabric 0.1.1, then 'get' will always do name
> mangling, but I think Jeff changed that behavior at some point (for
> the 0.9'ish versions) so that name mangling only happens when there is
> more than one host.
>
> On Tue, Jul 28, 2009 at 6:52 PM, Erik Wickstrom<address@hidden> wrote:
>> Hi,
>>
>> I'm testing Fabric with Rackspace Cloud Sites, which is an environment
>> without SSH access but it does have SFTP. Fabric's put operation
>> seems to work correctly, however "get" is naming the files incorrectly
>> on the local system.
>>
>> def cloud():
>> env.hosts = ['address@hidden']
>> env.password = '********'
>>
>> def x():
>> get('www.test.com/test.txt', './test/')
>>
>> When I run "fab cloud x", test.txt is downloaded into my local test
>> directory, but the file is named .ftp2.ftptoyoursite.com
>> (./test/.ftp2.ftptoyoursite.com)
>>
>> When I tell "get" to download to "test.txt" I end up with
>> test.txt.ftp2.ftptoyoursite.com.
>>
>> Any suggestions?
>>
>> Thanks!
>> Erik
>>
>>
>> _______________________________________________
>> Fab-user mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.