Permalink
Browse files

Add back in user@host logic

  • Loading branch information...
1 parent 185758b commit 11e47ef73c36ad1cbafe2178d397f36cfab61af2 @philk philk committed Jan 24, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 littlechef/runner.py
View
@@ -134,6 +134,8 @@ def _node_runner():
"""This is only used by node so that we can execute in parallel"""
if not env.host_string:
abort('no node specified\nUsage: fix node:MYNODES recipe:MYRECIPE')
+ if '@' in env.host_string:
+ env.user = env.host_string.split('@')[0]
node = lib.get_node(env.host_string)
lib.print_header("Configuring {0}".format(env.host_string))
chef.sync_node(node)

0 comments on commit 11e47ef

Please sign in to comment.