Project

General

Profile

Bug #16662

Centos8 python3 compat?

Added by Florian Heigl 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
N/A
Category:
Generic methods - Package Management
Target version:
-
Pull Request:
Severity:
User visibility:
Effort required:
Priority:
0

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

#1

Updated by Alexis MOUSSET 6 months ago

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

Looks like a specific case broken with python3 indeed.

#2

Updated by Alexis MOUSSET 4 months ago

  • Status changed from New to Resolved

Fixed in 6.0.4 and 6.0.5

Also available in: Atom PDF