]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
bugfix: only recompile nodes in affected environments when deploying
authorelijah <elijah@riseup.net>
Thu, 2 Oct 2014 16:19:58 +0000 (09:19 -0700)
committerelijah <elijah@riseup.net>
Thu, 2 Oct 2014 16:19:58 +0000 (09:19 -0700)
lib/leap_cli/commands/deploy.rb

index bd1f4798df6f70ffd6cc62aeca29f64119163122..b78f130ce1d37a04f5f8d259ede6c1de7af3ec42 100644 (file)
@@ -51,7 +51,9 @@ module LeapCli
         environments.each do |env|
           check_platform_pinning(env)
         end
-        compile_hiera_files
+        # compile hiera files for all the nodes in every environment that is
+        # being deployed and only those environments.
+        compile_hiera_files(manager.filter(environments))
 
         ssh_connect(nodes, connect_options(options)) do |ssh|
           ssh.leap.log :checking, 'node' do