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

Add racktables machine reachability check #314

Merged
merged 1 commit into from Apr 15, 2024

Conversation

nicksinger
Copy link
Member

Copy link
Member

@baierjan baierjan left a comment

Choose a reason for hiding this comment

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

Looks OK.

racktables/find_unpingable_machines.sh Outdated Show resolved Hide resolved
racktables/get_unused_machines.py Outdated Show resolved Hide resolved
req = self.s.get(join(self.url, "index.php"), params="&".join("%s=%s" % (k,v) for k,v in search_payload.items()))
soup = BeautifulSoup(req.text, 'html.parser')
result_table = soup.find("table", {"class": "cooltable"})
result_objs = result_table.find_all("tr", lambda tag: tag != None) #racktables does not use table-heads so we have to filter the header out (it has absolutely no attributes)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
result_objs = result_table.find_all("tr", lambda tag: tag != None) #racktables does not use table-heads so we have to filter the header out (it has absolutely no attributes)
result_objs = result_table.find_all("tr", lambda tag: tag != None) # Racktables does not use table-heads so we have to filter the header out (it has absolutely no attributes)

racktables/racktables.py Outdated Show resolved Hide resolved
racktables/racktables.py Outdated Show resolved Hide resolved
racktables/racktables.py Outdated Show resolved Hide resolved
@asdil12
Copy link
Member

asdil12 commented Apr 15, 2024

Could you maybe indent the python scripts also by 4. (Or using tabs - I would totally approve that as well :P)

@nicksinger
Copy link
Member Author

So all the changes you requested are in b1a6ef5 but the current version of both .py-files is now formatted with default black-settings.

@mergify mergify bot merged commit ab1ef95 into os-autoinst:master Apr 15, 2024
4 checks passed
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.

None yet

5 participants