-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
kthare10
commented
Jan 20, 2024
- Support for adding removing Portal SSH keys to slivers
Pull Request Test Coverage Report for Build 7603196601
💛 - Coveralls |
There was a problem hiding this 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!
@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() |
There was a problem hiding this comment.
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. :-)