mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d4e831f31d
Fix lxc plugin options (#7369) * Fixture for liblxc Add a fixture to allow testing the lxc connection plugin both with and without liblxc being present. Also change the test from unittest to pytest. * Update liblxc error message The error is not specific to python2, so remove the version. Also add a test for it. * Migrate to options Because the lxc plugin was only using PlayContext properties, using host vars like `ansible_lxc_host` didn't work. This is fixed by instead using the `get_option` method inherited from `AnsiblePlugin`. The options are not yet available in the `__init__` function, so the determination of the container name is moved to the `_connect` method, which is the first time it is actually needed. The default for the `remote_addr` option is removed, because the string `inventory_hostname` is not very useful. At all. This seams to have been spread with copy&paste and a bit of cargo culting. The variable priority already takes care of setting the value. * Add changelog fragment * Fix for Py2.7 `TypeError: super() takes at least 1 argument (0 given)` * Add plugin type to changelog fragment. * Restore untemplated default This partially reverts commit |
||
---|---|---|
.. | ||
.keep | ||
7.5.0.yml | ||
6134-add-locked-option-for-cargo.yml | ||
6813-redfish-config-add-create-volume.yml | ||
7129-adding_set_secure_boot_command_to_redfish_config.yml | ||
7241-prevent-key-error-when-value-does-not-exist.yml | ||
7242_ignore_similar_chars.yml | ||
7251-gitlab-variables-deleteing-all-variables.yml | ||
7263-proxmox-return-vmid-and-taskid.yaml | ||
7264-ldap_search-strings.yml | ||
7267-redis_info.yml | ||
7273-ini_file_ignore_spaces.yml | ||
7284-supervisorctl-stop-before-remove.yaml | ||
7295-adding_deprecation_for_timeout_in_redfish_info_config_command.yml | ||
7301-fix-backend-config-string-encapsulation.yml | ||
7303-mail-incorrect-header-parsing.yml | ||
7304-prevent-parted-warnings.yml | ||
7308-onepassword-multi-acc.yml | ||
7318-add-linkstatus-attribute-to-nic-inventory.yml | ||
7323-nmap.yml | ||
7330-redfish-utils-oem-params.yml | ||
7339-pnpm-correct-version-when-state-latest.yml | ||
7340-snap-fix.yml | ||
7343-dig-tcp-option.yml | ||
7352-add-executable-option-for-cargo.yml | ||
7355-newrelic-deployment-add-exact-name.yml | ||
7364-add-option-force-gitlab-group.yml | ||
7369-fix-lxc-options.yml | ||
deprecate-ansible-core-2.11-2.12.yml |