You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aixAIX communitybugThis issue/PR relates to a bug.easyfixThis issue is considered easy to fix by aspiring contributors.P2Priority 2 - Issue Blocks Release
i tried to use ansible 1.9.3 from a linux host against a AIX 6.1 host. the previous version worked, but now when gathering facts i get
...
facts = ansible_facts(module)
File "/var/tmp/ansible-tmp-1442561078.81-20680068205968/setup", line 4432, in ansible_facts facts.update(Network(module).populate())
File "/var/tmp/ansible-tmp-1442561078.81-20680068205968/setup", line 3692, in populate interfaces, ips = self.get_interfaces_info(ifconfig_path)
TypeError: get_interfaces_info() takes exactly 3 arguments (2 given)
it looks like this commit changed the signature of get_interfaces_info for the AIX platform (now there is a ifconfig_options parameter), but the superclass (GenericBsdIfconfigNetwork) calls this method with only one parameter.
I'm not sure what the correct solution would be. Either set a default value for the parameter with ifconfig_options='a' or change the caller to give an additional parameter (whatever it would be for the GenericBsdIfconfigNetwork).
The text was updated successfully, but these errors were encountered:
diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py
index ab37177..3d479c6 100644
--- a/lib/ansible/module_utils/facts.py+++ b/lib/ansible/module_utils/facts.py@@ -2355,7 +2355,7 @@ class AIXNetwork(GenericBsdIfconfigNetwork, Network):
return interface['v4'], interface['v6']
# AIX 'ifconfig -a' does not have three words in the interface line
- def get_interfaces_info(self, ifconfig_path, ifconfig_options):+ def get_interfaces_info(self, ifconfig_path, ifconfig_options='-a'):
interfaces = {}
current_if = {}
ips = dict(
Yannig
added a commit
to Yannig/ansible
that referenced
this issue
Sep 18, 2015
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
aixAIX communitybugThis issue/PR relates to a bug.easyfixThis issue is considered easy to fix by aspiring contributors.P2Priority 2 - Issue Blocks Release
hi,
i tried to use ansible 1.9.3 from a linux host against a AIX 6.1 host. the previous version worked, but now when gathering facts i get
it looks like this commit changed the signature of
get_interfaces_info
for the AIX platform (now there is aifconfig_options parameter
), but the superclass (GenericBsdIfconfigNetwork
) calls this method with only one parameter.I'm not sure what the correct solution would be. Either set a default value for the parameter with
ifconfig_options='a'
or change the caller to give an additional parameter (whatever it would be for theGenericBsdIfconfigNetwork
).The text was updated successfully, but these errors were encountered: