-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Handle facts for HP-UX 9000/785 architecture #33333
Conversation
This fix adds support for HP-UX '9000/785' architecture. Fixes: ansible#31976 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@@ -55,7 +55,7 @@ def get_cpu_facts(self, collected_facts=None): | |||
cpu_facts = {} | |||
collected_facts = collected_facts or {} | |||
|
|||
if collected_facts.get('ansible_architecture') == '9000/800': | |||
if collected_facts.get('ansible_architecture') in ['9000/800', '9000/785']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know what the other possible values here are?
Can we generalize and assume any '^9000.*' ansible_architecture should use ioscan?
Could we invert the if/elif check for ia64 and else use ioscan?
roughly...
if collected.facts.get('ansible_architecture') == 'ia64':
# < ia64 stuff here >
else:
# < 9000 ioscan stuff here>
or check for '9000' in arch?
if collected_facts.get('ansible_architecture') == 'ia64':
# < do ia64 stuff >
elif collected_facts.get('ansible_architecture', '').startswith('9000/'):
# < do 9000 ioscan stuff >
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think I'll merge for now and add an issue to generalize the check (#35055) |
SUMMARY
This fix adds support for HP-UX '9000/785' architecture.
Fixes: #31976
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
lib/ansible/module_utils/facts/hardware/hpux.py
ANSIBLE VERSION