You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If something else has deleted the task's tmpdir after the task completes successfully but before bolt can delete it bolt prints an ugly stack trace message.
Expected Behavior
We should print a simple helpful warning when we deleting a tasks tmpdir fails.
The text was updated successfully, but these errors were encountered:
… for PAL
This updates `Bolt::PAL.with_puppet_settings` to safely delete the
tmpdir used to configure Puppet. Previously, the tmpdir was created with
a block, which would result in the tmpdir being automatically deleted
once the block completed. However, if the tmpdir was deleted before this
happened, Bolt would error and show a stacktrace. Now, Bolt manually
deletes the tmpdir if it exists instead of relying on the `mktmpdir`
method to do it automatically.
!bug
* **Safely delete tmpdir used to configure Puppet for PAL**
([puppetlabs#2245](puppetlabs#2245))
Bolt now safely deletes the tmpdir used to configure Puppet when using
PAL. Previously, if the tmpdir was deleted during a Bolt run before
Bolt deleted the directory itself, an error with a stacktrace would be
raised.
… for PAL
This updates `Bolt::PAL.with_puppet_settings` to safely delete the
tmpdir used to configure Puppet. Previously, the tmpdir was created with
a block, which would result in the tmpdir being automatically deleted
once the block completed. However, if the tmpdir was deleted before this
happened, Bolt would error and show a stacktrace. Now, Bolt manually
deletes the tmpdir if it exists instead of relying on the `mktmpdir`
method to do it automatically.
!bug
* **Safely delete tmpdir used to configure Puppet for PAL**
([puppetlabs#2245](puppetlabs#2245))
Bolt now safely deletes the tmpdir used to configure Puppet when using
PAL. Previously, if the tmpdir was deleted during a Bolt run before
Bolt deleted the directory itself, an error with a stacktrace would be
raised.
Describe the Bug
If something else has deleted the task's tmpdir after the task completes successfully but before bolt can delete it bolt prints an ugly stack trace message.
Expected Behavior
We should print a simple helpful warning when we deleting a tasks tmpdir fails.
The text was updated successfully, but these errors were encountered: