Skip to content

Disregard internal href#1

Open
khalidharun wants to merge 1 commit intomasterfrom
use-public-url
Open

Disregard internal href#1
khalidharun wants to merge 1 commit intomasterfrom
use-public-url

Conversation

@khalidharun
Copy link
Copy Markdown

Summary

The API client errors when trying to access nested resources. This happens because each resource has an HREF resource url attached to it but this resource url is based on an internal hostname which isn't accessible in Azure.

This PR makes the host url based on parent's hostname.

@khalidharun khalidharun requested a review from zhelding October 17, 2019 21:01
Comment thread ambariclient/base.py
if self._href is not None:
return self._href
# if self._href is not None:
# return self._href
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a reason to keep this code here commented out? Otherwise, good to merge.

@zhelding
Copy link
Copy Markdown

@khalidharun: one small comment / suggestion, but have marked as approved so can be merged at your discretion.

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