summaryrefslogtreecommitdiffstats
path: root/bin/puppetrun
diff options
context:
space:
mode:
Diffstat (limited to 'bin/puppetrun')
-rwxr-xr-xbin/puppetrun2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/puppetrun b/bin/puppetrun
index f33c7f8a1..28f72d9c3 100755
--- a/bin/puppetrun
+++ b/bin/puppetrun
@@ -245,7 +245,7 @@ end
# Now parse the config
Puppet.parse_config
-if Puppet[:node_terminus] = "ldap"
+if Puppet[:node_terminus] == "ldap" and (options[:all] or classes)
if options[:all]
hosts = Puppet::Node.search("whatever").collect { |node| node.name }
puts "all: %s" % hosts.join(", ")