Skip to content

(PUP-11129) remove deleted environments from cache#8663

Merged
gimmyxd merged 1 commit intopuppetlabs:6.xfrom
gimmyxd:PUP-11129
Jul 5, 2021
Merged

(PUP-11129) remove deleted environments from cache#8663
gimmyxd merged 1 commit intopuppetlabs:6.xfrom
gimmyxd:PUP-11129

Conversation

@gimmyxd
Copy link
Copy Markdown
Contributor

@gimmyxd gimmyxd commented Jun 30, 2021

Previously, the cached environment list could
return environments that were no longer accessible.

This commit updates the code to remove from
cache environments that are no longer on disk.

@gimmyxd gimmyxd marked this pull request as ready for review June 30, 2021 15:27
@gimmyxd gimmyxd requested review from a team June 30, 2021 15:27
Comment thread lib/puppet/environments.rb Outdated
Copy link
Copy Markdown
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could you include some description about the behavior change in the commit message?

Copy link
Copy Markdown
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's a conflict due to the reverted symbol/string change, otherwise looks good!

Previously, the cached environment list could
return environments that were no longer accessible.

This commits updates the code to remove from
cache envrionments that are no longer on disk.
@gimmyxd gimmyxd merged commit 4019123 into puppetlabs:6.x Jul 5, 2021
@gimmyxd gimmyxd deleted the PUP-11129 branch July 5, 2021 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants