puppet-debugger icon indicating copy to clipboard operation
puppet-debugger copied to clipboard

resources are still added even though they fail the evaulation

Open logicminds opened this issue 9 years ago • 1 comments

6:>> file{'hello':
  7:>> ensure => present,
  8:>> mode => '0700',
  9:>> }
 => Parameter path failed on File[hello]: File paths must be fully qualified, not 'hello' at line 1

10:>> resources
Resources not shown in any specific order
[
  [ 0] "Stage['main']",
  [ 1] "Class['Settings']",
  [ 2] "Class['main']",
  [ 3] "Stage['before_main']",
  [ 4] "Stage['one']",
  [ 5] "Stage['two']",
  [ 6] "Stage['three']",
  [ 7] "Node['foo']",
  [ 8] "Class['Stdlib']",
  [ 9] "Class['Stdlib::Stages']",
  [10] "Stage['setup']",
  [11] "Stage['runtime']",
  [12] "Stage['setup_infra']",
  [13] "Stage['deploy_infra']",
  [14] "Stage['setup_app']",
  [15] "Stage['deploy_app']",
  [16] "Stage['deploy']",
  [17] "Notify['I am here']",
  [18] "File['hello']"
]

logicminds avatar May 24 '16 23:05 logicminds

Puppet never expected to be run in a loop with back to back evaulations. As a result puppet would have just failed with the error. However, because this is a repl puppet never has a chance to fail and exit because it is run in a loop.

logicminds avatar Oct 19 '16 22:10 logicminds