the XY problem being I assign a class before I hav...
# puppet
c
the XY problem being I assign a class before I have a token (because these actions are done by separate teams) The retrieval of the token depends on a fact that is generated only when the token exists. Previously I had this class::install
Copy code
[...]
if (-not $facts['token_path']) {
  warning('Need token')
  return()
}
Package XYZ:
[...]
But the service depends on package, which is never reached because of the return. (I also tried failed(), which has the same result of making the run fail 😅