Skip to content

Commit 986efa2

Browse files
committed
Merge pull request #130 from dnedbaylo/patch-1
Don't ignore user name from node connection string
2 parents 745a32e + 77d4c4b commit 986efa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

littlechef/runner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def node(*nodes):
126126
for hostname in env.hosts:
127127
env.host = hostname
128128
env.host_string = hostname
129+
if '@' in hostname:
130+
env.user = hostname.split('@')[0]
129131
node = lib.get_node(env.host)
130132
lib.print_header("Configuring {0}".format(env.host))
131133
if __testing__:

0 commit comments

Comments
 (0)