Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled' #6106

Merged

Conversation

heaveaxy
Copy link
Contributor

SUMMARY

If method4 was disabled, this option has no effect - nmcli accepts it, but keeps it's own default value. Task marked changed always because of diff with default value and passed to module.
Now option ipv4.may-fail participate in configuration process only when user defined method4 as non-disabled.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

nmcli

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module net_tools new_contributor Help guide this first time contributor plugins plugin (any type) labels Feb 26, 2023
@github-actions
Copy link

Docs Build 📝

Thank you for contribution!✨

The docsite for this PR is available for download as an artifact from this run:
https://github.com/ansible-collections/community.general/actions/runs/4275991406

File changes:

  • M collections/community/general/nmcli_module.html
Click to see the diff comparison.

NOTE: only file modifications are shown here. New and deleted files are excluded.
See the file list and check the published docs to see those files.

diff --git a/home/runner/work/community.general/community.general/docsbuild/base/collections/community/general/nmcli_module.html b/home/runner/work/community.general/community.general/docsbuild/head/collections/community/general/nmcli_module.html
index 967b91b..050f2be 100644
--- a/home/runner/work/community.general/community.general/docsbuild/base/collections/community/general/nmcli_module.html
+++ b/home/runner/work/community.general/community.general/docsbuild/head/collections/community/general/nmcli_module.html
@@ -675,6 +675,7 @@ see <a class="reference internal" href="#ansible-collections-community-general-n
 <p><span class="ansible-option-versionadded">added in community.general 3.3.0</span></p>
 </div></td>
 <td><div class="ansible-option-cell"><p>If you need <em>ip4</em> configured before <code class="docutils literal notranslate"><span class="pre">network-online.target</span></code> is reached, set this option to <code class="docutils literal notranslate"><span class="pre">false</span></code>.</p>
+<p>This option applies when <code class="docutils literal notranslate"><span class="pre">method4</span></code> is not <code class="docutils literal notranslate"><span class="pre">disabled</span></code>.</p>
 <p class="ansible-option-line"><span class="ansible-option-choices">Choices:</span></p>
 <ul class="simple">
 <li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">false</span></code></p></li>

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-5 labels Feb 27, 2023
@ansibullbot ansibullbot added stale_ci CI is older than 7 days, rerun before merging and removed new_contributor Help guide this first time contributor labels Mar 7, 2023
@felixfontein
Copy link
Collaborator

If nobody objects, I'll merge this this weekend as well.

@ansibullbot ansibullbot removed the stale_ci CI is older than 7 days, rerun before merging label Mar 25, 2023
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Mar 26, 2023
@felixfontein felixfontein merged commit 5ee6870 into ansible-collections:main Mar 26, 2023
@patchback
Copy link

patchback bot commented Mar 26, 2023

Backport to stable-5: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-5/5ee687049f16d75b532eafe4c5404a8564a3a3f0/pr-6106

Backported as #6240

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@heaveaxy thanks for your contribution!

patchback bot pushed a commit that referenced this pull request Mar 26, 2023
…abled' (#6106)

* nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled'

* added note to documentation

* updated changelog fragment

* Update changelog fragment.

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 5ee6870)
@patchback
Copy link

patchback bot commented Mar 26, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/5ee687049f16d75b532eafe4c5404a8564a3a3f0/pr-6106

Backported as #6241

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 26, 2023
…abled' (#6106)

* nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled'

* added note to documentation

* updated changelog fragment

* Update changelog fragment.

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 5ee6870)
felixfontein pushed a commit that referenced this pull request Mar 26, 2023
… with 'may_fail4' when 'method' is 'disabled' (#6241)

nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled' (#6106)

* nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled'

* added note to documentation

* updated changelog fragment

* Update changelog fragment.

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 5ee6870)

Co-authored-by: Sam Potekhin <[email protected]>
felixfontein pushed a commit that referenced this pull request Mar 26, 2023
… with 'may_fail4' when 'method' is 'disabled' (#6240)

nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled' (#6106)

* nmcli: fixed idempotency issue with 'may_fail4' when 'method' is 'disabled'

* added note to documentation

* updated changelog fragment

* Update changelog fragment.

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 5ee6870)

Co-authored-by: Sam Potekhin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module net_tools plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants