Project

General

Profile

Actions

Bug #16662

closed

Centos8 python3 compat?

Added by Florian Heigl almost 5 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
N/A
Category:
Generic methods
Target version:
-
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

I was getting this spurious traceback.
It can make a few problems, it seems to only come if a package doesn't exist. (don't you got a test for that? ;-)

E| n/a Config_Yum_fine_tuning Package state yum-plugin-post-t| Skipping method 'Package state' with key parameter 'yum-plugin-post-transaction-actions' since condition 'any.(!centos_8)' is not reached was not applicable
Traceback (most recent call last):
File "/var/rudder/cfengine-community/modules/packages/yum", line 438, in <module>
sys.exit(main())
File "/var/rudder/cfengine-community/modules/packages/yum", line 420, in main
return list_updates(True)
File "/var/rudder/cfengine-community/modules/packages/yum", line 146, in list_updates
line = lastline + line
TypeError: must be str, not bytes

Actions #1

Updated by Alexis Mousset almost 5 years ago

  • Project changed from Rudder to 41
  • Category changed from Techniques to Generic methods - Package Management
  • Assignee set to Félix DALLIDET

Looks like a specific case broken with python3 indeed.

Actions #2

Updated by Alexis Mousset over 4 years ago

  • Status changed from New to Resolved

Fixed in 6.0.4 and 6.0.5

Actions #3

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category changed from Generic methods - Package Management to Generic methods
Actions

Also available in: Atom PDF