On 3 October 2014 10:37, Wawrzek Niewodniczanski <m...@wawrzek.name> wrote: > Hi, > > For quite a long time I've been using various fabric based scripts. > Recently I hit very strange problem. Following short script > illustrates my issue. > > > #!/usr/bin/env python > > import fabric > from fabric.api import env, run > > env.hosts = ['localhost'] > > def test(): > print "Hosts:", env['hosts'] > print "Host_string", env['host_string'] > run('uname -a') > > > test() > > > And when I run It I got: > I found the bug. The line: test()
should be: execute(test) and everything is fine!!! Cheers. Wawrzek -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: j...@wawrzek.name Linux User #177124 _______________________________________________ Fab-user mailing list Fab-user@nongnu.org https://lists.nongnu.org/mailman/listinfo/fab-user