-
-
Notifications
You must be signed in to change notification settings - Fork 76
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 free-form text to qube for notes, comments, ... #334
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #334 +/- ##
==========================================
- Coverage 75.26% 75.21% -0.05%
==========================================
Files 52 52
Lines 8975 8983 +8
==========================================
+ Hits 6755 6757 +2
- Misses 2220 2226 +6 ☔ View full report in Codecov by Sentry. |
fa3aa90
to
dbce8cc
Compare
qubesadmin part of adding free-form text to each qube for comments, notes, descriptions, remarks, reminders, etc. fixes: QubesOS/qubes-issues#899
dbce8cc
to
dc029b3
Compare
''' Get qube notes ''' | ||
try: | ||
response = self.qubesd_call(self._method_dest, 'admin.vm.notes.Get') | ||
except Exception as exc: |
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.
This is definitely too broad. If anything, maybe just qubesadmin.exc.QubesDaemonNoResponseError
, but even that I'm not sure. qubesd should return already correct exception on error.
try: | ||
self.qubesd_call(self._method_dest, 'admin.vm.notes.Set', \ | ||
payload = str(notes).encode('ascii')) | ||
except Exception as exc: |
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.
and same here
qubesadmin part of adding free-form text to each qube for comments, notes, descriptions, remarks, reminders, etc.
fixes: QubesOS/qubes-issues#899