diff --git a/lib/puppet/network/http/api/master/v3/environment.rb b/lib/puppet/network/http/api/master/v3/environment.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/network/http/api/master/v3/environment.rb
+++ b/lib/puppet/network/http/api/master/v3/environment.rb
@@ -22,7 +22,7 @@ class Puppet::Network::HTTP::API::Master::V3::Environment
       # Turn the 'nodes' hash into a map component ref => node name
       node_mapping = {}
       app['nodes'].each do |node, comps|
-        comps = [comps] unless comp.is_a?(Array)
+        comps = [comps] unless comps.is_a?(Array)
         comps.each do |comp|
           raise Puppet::ParseError, "Application #{app} maps component #{comp} to multiple nodes" if node_mapping.include?(comp.ref)
           node_mapping[comp.ref] = node.title
(maint) Fix a typo in Puppet::Network::HTTP::API::Master::V3::Environment

Thanks to Ryan Coleman for complaining and to Brian Cain for actually
finding where it was hiding.