On Tue, Jul 28, 2009 at 7:20 PM, Christian Vest Hansen<[email protected]> 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<[email protected]> 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 = ['***[email protected]'] >> 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 >> [email protected] >> http://lists.nongnu.org/mailman/listinfo/fab-user >> > > > > -- > Venlig hilsen / Kind regards, > Christian Vest Hansen. > -- Venlig hilsen / Kind regards, Christian Vest Hansen. _______________________________________________ Fab-user mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/fab-user
