Permalink
Browse files

Skip dummy earlier to really not sync anything to it

  • Loading branch information...
1 parent 2a4d975 commit 37f0e42940470561a2c2eb1f4ba33814e116feb7 @tobami committed Jun 14, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 littlechef/chef.py
View
@@ -69,6 +69,9 @@ def sync_node(node):
It also injects the ipaddress to the node's config file if not already
existent.
"""
+ if node.get('dummy'):
+ lib.print_header("Skipping dummy: {0}".format(env.host))
+ return
# Get merged attributes
current_node = _build_node_data_bag()
with lib.credentials():
@@ -98,9 +101,6 @@ def _synchronize_node(configfile, node):
Returns the node object of the node which is about to be configured,
or None if this node object cannot be found.
"""
- if node.get('dummy'):
- lib.print_header("Skipping dummy: {0}".format(env.host))
- return
print "Synchronizing node, cookbooks, roles and data bags..."
# First upload node.json
remote_file = '/etc/chef/node.json'

0 comments on commit 37f0e42

Please sign in to comment.