Skip to content

Added check for format of api string#46

Open
matanl490 wants to merge 1 commit into
mainfrom
feat/port-3767-suppress-webhook-creation-option
Open

Added check for format of api string#46
matanl490 wants to merge 1 commit into
mainfrom
feat/port-3767-suppress-webhook-creation-option

Conversation

@matanl490

Copy link
Copy Markdown
Contributor

No description provided.

@MPTG94 MPTG94 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fix comment and merge

Comment thread gitlab/gitlab_exporter.py
if '/api/' not in GITLAB_API_URL:
print("GITLAB_API_URL is not valid, should be in the format 'https://GitLabHostName.com/api/v4'")
print("Exiting...")
sys.exit(0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

0 exit code means everything went ok, if there is an error, the exit code needs to be different than 0

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