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

61 fablib using portal sliver keys #273

Merged
merged 7 commits into from
Jan 21, 2024
Merged

Conversation

kthare10
Copy link
Collaborator

  • Support for adding removing Portal SSH keys to slivers

@kthare10 kthare10 self-assigned this Jan 20, 2024
@kthare10 kthare10 linked an issue Jan 20, 2024 that may be closed by this pull request
@coveralls
Copy link
Collaborator

coveralls commented Jan 20, 2024

Pull Request Test Coverage Report for Build 7603196601

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 22.143%

Totals Coverage Status
Change from base Build 7544369257: -0.03%
Covered Lines: 1150
Relevant Lines: 4633

💛 - Coveralls

@kthare10 kthare10 requested review from sajith and paul-ruth January 20, 2024 14:59
Copy link
Member

@sajith sajith left a comment

Choose a reason for hiding this comment

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

LGTM! Got some nitpicks, as usual. Feel free to ignore or address them!

Comment on lines +85 to +89
@staticmethod
def read_file_contents(file_path: str) -> str:
if os.path.exists(file_path):
with open(file_path, "r", encoding="utf-8") as f:
return f.read()
Copy link
Member

Choose a reason for hiding this comment

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

May I recommend pathlib.Path(file_path).read_text() (or maybe pathlib.Path(file_path).read_bytes(), depending)? I just like pathlib. :-)

fabrictestbed_extensions/fablib/node.py Outdated Show resolved Hide resolved
@kthare10 kthare10 merged commit 4a3d912 into main Jan 21, 2024
14 checks passed
@kthare10 kthare10 deleted the 61-fablib-using-portal-sliver-keys branch January 21, 2024 19:20
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.

fablib: Using portal sliver keys
3 participants