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

Hostname contents and list lengths #1036

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

snoyes
Copy link
Contributor

@snoyes snoyes commented Sep 5, 2022

In the database interface, and cannot be used to check for two substrings like this code attempts. This code effectively only checks for the word 'project' in the hostname. Correctly check for both words in the socket hostname.

In the preview image, the group and integ are allowed to be integers or lists of length 2, but there was no check if the list was of length 0 or 1.

`and` cannot be used to check for two substrings like this.
Correctly check for both words in the socket hostname.
@pep8speaks
Copy link

pep8speaks commented Sep 5, 2022

Hello @snoyes, Thank you for updating !

Line 558:48: E128 continuation line under-indented for visual indent
Line 559:42: E128 continuation line under-indented for visual indent

Comment last updated at 2024-10-07 17:54:31 UTC

Later code assumes that the list has at least two elements.
@snoyes snoyes changed the title Correctly check hostname contents Hostname contents and list lengths Sep 6, 2022
Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

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

Thanks for your submission!

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.

4 participants