Skip to content

Fix acme state to correctly return on test - #44603

Merged
cachedout merged 1 commit into
saltstack:developfrom
oarmstrong:develop
Nov 20, 2017
Merged

cachedout merged 1 commit into
saltstack:developfrom
oarmstrong:develop

Conversation

@oarmstrong

Copy link
Copy Markdown
Contributor

What does this PR do?

Previously, the acme.cert state would return that a change was pending
during a test run even in the case that the certificate would not have
been touched.

Changed the return value in this case so that it is not thought to
require a change.

What issues does this PR fix or reference?

Partial 'quick fix' for #40208. Referenced in part as well at #42763.

Previous Behavior

acme.cert with test=True would also return in a changed state even when it specified that no changes are required.

New Behavior

acme.cert no longer quotes that changes are required when they are not.

Tests written?

No

Commits signed with GPG?

Yes

Previously, the acme.cert state would return that a change was pending
during a test run even in the case that the certificate would not have
been touched.

Changed the return value in this case so that it is not thought to
require a change.

This is reported in #40208 [0] and is also referenced in #42763 [1].
The issue #40208 looks to go on to recommend further changes beyond the
scope of this 'quick fix'.

[0] #40208 (comment)
[1] #42763 (comment)
@cachedout
cachedout merged commit 56f0584 into saltstack:develop Nov 20, 2017
@oarmstrong

Copy link
Copy Markdown
Contributor Author

Just noticed that this wasn't included in 2017.7.3. Would a backport be possible for .4?

@rallytime

Copy link
Copy Markdown
Contributor

@oarmstrong I can back-port this to 2017.7 branch, but it won't make it into 2017.7.4. It will be in 2017.7.5.

In the future, please feel free to submit bug fixes to the main release branch. There's more details about that here. Please let me know if you have any questions. Thanks!

@rallytime rallytime added the bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch label Feb 20, 2018
@oarmstrong

Copy link
Copy Markdown
Contributor Author

Ah, my apologies. I'll keep that in mind for my future contributions. Many thanks!

@rallytime

Copy link
Copy Markdown
Contributor

@oarmstrong No problem at all! Thanks again for the fix. 😄

@rallytime rallytime added Bugfix - [Done] back-ported and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels Feb 20, 2018
rallytime pushed a commit that referenced this pull request Feb 21, 2018
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.

3 participants