Modify

Ticket #840 (closed task: fixed)

Opened 13 years ago

Last modified 13 years ago

Use hashlib instead of md5 Module (rpmtools.py)

Reported by: [email protected] Owned by: desai
Priority: trivial Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-client Version: 1.0
Keywords: md5 hashlib Cc:

Description

The md5 module from the python stdard library is deprecated since version 2.5. See warning below (bcfg2 -v -n):

/usr/local/lib64/python2.6/site-packages/Bcfg2/Client/Tools/rpmtools.py:24: DeprecationWarning?: the md5 module is deprecated; use hashlib instead

import md5

In case bcfg2 requires python 2.5 for installation:

See attachment for a very simple patch created against the 1.0.1 release (sorry, I don't have a svn copy). I'm not very familiar with the bcfg2 code but imho the md5 module is used only one time in the rpmtools.py file.

Attachments

md5.patch (532 bytes) - added by Alexander Hofmann <[email protected]…> 13 years ago.

Change History

Changed 13 years ago by Alexander Hofmann <[email protected]…>

comment:1 Changed 13 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release

Added in [618425388b594baea6c40f6b6fbac60eddc6efde] (SVN r5710). Thanks for the patch.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.