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
This commit is contained in:
Michele Baldessari 2019-12-20 19:31:06 +01:00
parent 80dcc19695
commit 54cb9a465c
1 changed files with 2 additions and 1 deletions

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