-
Notifications
You must be signed in to change notification settings - Fork 375
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
Debian - Byte to string conversion for systemd service creation #2574
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2574 +/- ##
========================================
Coverage 71.92% 71.92%
========================================
Files 102 102
Lines 15392 15392
Branches 2445 2445
========================================
Hits 11071 11071
Misses 3826 3826
Partials 495 495 Continue to review full report at Codecov.
|
return from subprocess.check_output(['cat', '/proc/1/comm']).strip() for python3 ===> b'systemd' |
Since DCR pipeline is not working, I manually tested and looks good. |
@thedarksage Thanks for the fix. |
@nagworld9 did you test this |
The Debian image that I tested had both py2 and py3. So, I ran setup.py with both pythons and it worked. |
Description
Issue # (#2573)
Added string decode for byte to string conversion while checking for presence of systemd
return from subprocess.check_output(['cat', '/proc/1/comm']).strip() for python3 ===> b'systemd'
return from subprocess.check_output(['cat', '/proc/1/comm']).strip() for python2 ===> 'systemd'
#2573
-->
PR information
Quality of Code and Contribution Guidelines