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

Handle invalid subdomain error in Mac script #117

Merged
merged 1 commit into from May 24, 2018

Conversation

@Shwetajain148
Copy link
Contributor

@Shwetajain148 Shwetajain148 commented May 22, 2018

Hi, In this PR, I have-

  • Put a condition to check if the subdomain is complete account URL and is containing .loggly.com as well. If yes, then mark this subdomain as invalid and exit the script with proper error message.

  • Checked for both response code type from CURL - 200 OK & 200. Most of the curl versions return 200 OK but some of them also return 200 so script should mark the subdomain valid in both response type.

Currently, I am in process of testing the script in various scenarios like by passing valid/invalid subdomain and check the script's execution.

@duttly
Copy link
Contributor

@duttly duttly commented May 24, 2018

LGTM.

@duttly duttly merged commit 4495ea5 into loggly:master May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.