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

Ansible host #348

Closed

Conversation

justinorringer
Copy link
Contributor

What?

Explain what the change is linking any relevant JIRAs or Issues.

Why?

Consider what business or engineering goal does this PR achieves.

How?

Adding ansible_host field from inventory

Testing

Updating the inventory unit tests.

Anything Else?

Any other notes about the PR that would be useful for the reviewer.

Secure Coding Practices Checklist Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • General Coding Practices

Copy link
Contributor

@dehort dehort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. I left a note about how to fix the failing tests. You can see the test output here.

Your current set of changes add the AnsibleHost field to the inventory data. So that is step 1. Next we need to make sure that the AnsibleHost data gets returned back to the caller. I think we need to modify the RecipientWithConnectionInfo struct (regen the api code??) and then modify the formatConnectionResponse() function to add the AnsibleHost data to the instance of RecipientWithConnectionInfo.

This is kinda complicated. 😀 Let me know if that doesn't make sense.

@justinorringer
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants