Commit 0b4a6a0
committed
ipahost: Fix idempotence issues with update_dns and multiple objects
When using ipahost with the 'hosts' parameters several parameter
conversion routines were not being performed causing the module to try
to execute tasks it was not suposed to.
This issues were fixed by adapting the module to use EntryFactory.
Another issue was happening when 'update_dns: true' is used with some
parameters, like 'description', 'location' or 'mac_address', where, even
if no change was to be performed the plugin would evaluate that the
arguments were different, and tried to modify the object.
The fix for this issue is to ignore 'updatedns' when comparing the
parameters provided with the existing IPA object.
This modification also fix the case where duplicate entries used with
the 'name' parameter in case 'state: absent' would fail without
indicating the use of duplicate entries.
Fixes: #1296
Fixes: https://issues.redhat.com/browse/RHEL-111063
Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>1 parent f62e8fd commit 0b4a6a0
4 files changed
Lines changed: 337 additions & 350 deletions
File tree
- plugins
- module_utils
- modules
- tests/host
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
540 | 548 | | |
541 | 549 | | |
542 | 550 | | |
| |||
1656 | 1664 | | |
1657 | 1665 | | |
1658 | 1666 | | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1659 | 1671 | | |
1660 | 1672 | | |
1661 | 1673 | | |
| |||
1693 | 1705 | | |
1694 | 1706 | | |
1695 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1696 | 1715 | | |
1697 | 1716 | | |
1698 | 1717 | | |
1699 | 1718 | | |
1700 | 1719 | | |
1701 | 1720 | | |
1702 | 1721 | | |
| 1722 | + | |
1703 | 1723 | | |
1704 | 1724 | | |
1705 | 1725 | | |
| |||
1714 | 1734 | | |
1715 | 1735 | | |
1716 | 1736 | | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
1717 | 1757 | | |
1718 | 1758 | | |
1719 | 1759 | | |
| |||
0 commit comments