Bug 912707 - rhsmd Calling Deprecated hasNow Function
Summary: rhsmd Calling Deprecated hasNow Function
Keywords:
Status: CLOSED DUPLICATE of bug 913118
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: beta
: 5.10
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-02-19 13:24 UTC by Devan Goodwin
Modified: 2013-04-30 19:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-30 19:27:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Devan Goodwin 2013-02-19 13:24:43 UTC
Some functionality was deprecated in python-rhsm, at the same time we replaced it's usage in subscription-manager but one call was missed in rhsmd:


/usr/libexec/rhsmd -s
/usr/lib64/python2.4/site-packages/rhsm/certificate.py:123: DeprecationWarning: Call to deprecated function: hasNow
  category=DeprecationWarning)



This should be updated to the new certificate2 module, I believe the method would be is_valid.

Comment 3 Bryan Kearney 2013-02-21 18:20:46 UTC
commit 5557f0bec9b582582a51d5207712c48c00d03d9d
Author: Bryan Kearney <bkearney>
Date:   Wed Feb 20 14:39:33 2013 -0500

    912707: Remove a use of the deprecated hasNow() function.

Comment 4 RHEL Program Management 2013-04-09 20:54:51 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 5 Sharath Dwaral 2013-04-30 19:23:57 UTC
# rpm -qa | egrep "subscription-manager|python-rhsm"
python-rhsm-1.8.9-1.git.7.214419e.el5
subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5
subscription-manager-gui-1.8.6-1.git.7.96019b0.el5
subscription-manager-firstboot-1.8.6-1.git.7.96019b0.el5
subscription-manager-migration-1.8.6-1.git.7.96019b0.el5
subscription-manager-1.8.6-1.git.7.96019b0.el5


# /usr/libexec/rhsmd -s

No longer throws any warning.


VERIFIED

Comment 6 Sharath Dwaral 2013-04-30 19:27:02 UTC

*** This bug has been marked as a duplicate of bug 913118 ***


Note You need to log in before you can comment on or make changes to this bug.