Browse Source

Improve scaleup debug logic

This can be useful if we need to debug more in detail
why the debug logic was triggered.

Change-Id: I0c5a8de7fc131ac115efe9152fd8aea946a706aa
changes/20/700220/1
Michele Baldessari 2 months ago
parent
commit
54cb9a465c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/puppet/parser/functions/pcmk_nodes_added.rb

+ 2
- 1
lib/puppet/parser/functions/pcmk_nodes_added.rb View File

@@ -48,6 +48,7 @@ Output forms:
# if the command fails we certainly did not add any nodes
return [] if $?.exitstatus != 0
end
Puppet.debug("pcmk_nodes_added: crm_nodes_output #{crm_nodes_output}")

crm_nodes = []
crm_nodes_output.lines.each { |line|
@@ -94,7 +95,7 @@ Output forms:
fail("pcmk_nodes_added: pcs #{pcs_version} is unsupported")
end

Puppet.debug("pcmk_nodes_added: #{ret}")
Puppet.debug("pcmk_nodes_added: #{ret} [#{node_list} - #{crm_nodes}]")
ret
end
end

Loading…
Cancel
Save