-
Notifications
You must be signed in to change notification settings - Fork 88
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
Added generic function for search by alt id. #225
Added generic function for search by alt id. #225
Conversation
…don't go for EA Search and always search with Ref and get back second search only works if NotFound by ref and InternalID is present.
- Added more records - Reduced multiple map lookups.
…ontainer, DNS View).
… with the provided internal id.
…d object with the given internal id.
…nternal id is missing.
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.
besides that comment, looks good to me
} else if strings.TrimSpace(internalId) == "" { | ||
// return object if internal id is empty | ||
success = true | ||
return success, nil |
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.
why it is returned true here
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.
We should return the return response received when fetched by ref and the internal id is empty. I should have updated the comment to return true if response is not nil and internal id is empty
.
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.
LGTM
No description provided.