fabric/fabric — Issue #580: user precedence
Author: eikeon
Created: 2012-03-08 19:43:03+00:00
State: open

I'm not sure how this should work or if it's working as intended, but at a minimum feels like a sharp enough edge that it could use some more documentation. I was expecting the same behavior regardless of which way I spell the command and expected the second behavior in both cases. Instead I go:

@task
def test():
with settings(user="foo"):
run("id")

fab -H dkre@ba.rdc.lctl.gov test
fab -u dkre -H ba.rdc.lctl.gov test

I get different results for the above commands. The first results in dkre, the second results in foo.