Skip to content

Handle invalid subdomain error in Mac script#117

Merged
duttly merged 1 commit intologgly:masterfrom
Shwetajain148:mac-script-fix
May 24, 2018
Merged

Handle invalid subdomain error in Mac script#117
duttly merged 1 commit intologgly:masterfrom
Shwetajain148:mac-script-fix

Conversation

@Shwetajain148
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants