Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add back in user@host logic

  • Loading branch information...
commit 11e47ef73c36ad1cbafe2178d397f36cfab61af2 1 parent 185758b
@philk philk authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  littlechef/runner.py
View
2  littlechef/runner.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.