-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
clean up getdomain logic #368
Conversation
hsds/servicenode_lib.py
Outdated
log.warn(f"domain: {domain} has been removed") | ||
raise | ||
except ClientResponseError as ce: | ||
# shouldn't get this if we are catching relevent exceptions |
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.
relevent
-> relevant
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.
fixed
hsds/util/domainUtil.py
Outdated
@@ -268,7 +268,7 @@ def validateDomainKey(domain_key): | |||
|
|||
|
|||
def getDomainFromRequest(request, validate=True): | |||
# print("gotDomainFromRequest:", request, "validate=", validate) | |||
print(f"tmp - getDomainFromRequest: {request}, validate={validate}") |
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.
Looks like a debug print was left in
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.
fixed
hsds/util/domainUtil.py
Outdated
@@ -279,7 +279,7 @@ def getDomainFromRequest(request, validate=True): | |||
domain = request.headers["X-Hdf-domain"] | |||
else: | |||
return None | |||
|
|||
print(f"tmp - domain: {domain}") |
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.
Same 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.
fixed
Clean up get domain logic.