Description of problem: Version-Release number of selected component (if applicable): [root@preethi ~]# rpm -q pulp pulp-0.0.181-1.fc14.noarch [root@preethi ~]# pulp-admin consumer history --id=preethi --start_date=2011-05-26 error: operation failed: AttributeError: 'str' object has no attribute 'tzinfo' [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin consumer history --id=preethi --end_date=2011-05-27 error: operation failed: AttributeError: 'NoneType' object has no attribute 'tzinfo'
There were 2 issues at play here. Looks like there was a copy/paste issue when converting the end_date before making the query for history. Second, there was a change to make the timestamps in the db to be in iso8601 date format, however the queries in the consumer_history api were still using epoch. I fixed those issues and the tests. There were a couple of commits, however the latest one is: d963c42bc20ca4b434535d7ada773dc0f07a4597
build: 0.192
[root@preethi ~]# rpm -q pulp pulp-0.0.223-1.fc14.noarch [root@preethi ~]# pulp-admin consumer history --id=preethi --start_date=2011-08-08 +------------------------------------------+ Consumer History +------------------------------------------+ Event Type Repo Unbound Timestamp 2011-08-09 11:15:35-04:00 Originator admin Repo ID f14-updates Event Type Repo Bound Timestamp 2011-08-09 09:20:14-04:00 Originator admin Repo ID f14-updates Event Type Consumer Created Timestamp 2011-08-08 16:18:44-04:00 Originator admin [root@preethi ~]# pulp-admin consumer history --id=preethi --end_date=2011-08-09 +------------------------------------------+ Consumer History +------------------------------------------+ Event Type Repo Unbound Timestamp 2011-08-09 11:15:35-04:00 Originator admin Repo ID f14-updates Event Type Repo Bound Timestamp 2011-08-09 09:20:14-04:00 Originator admin Repo ID f14-updates Event Type Consumer Created Timestamp 2011-08-08 16:18:44-04:00 Originator admin
Closing with Community Release 15 pulp-0.0.223-4.