Bug 709488

Summary: AttributeError when using timeout value in repo sync
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jconnor, skarmark, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 25   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:01:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 641987    

Description Preethi Thomas 2011-05-31 19:46:22 UTC
Description of problem:

AttributeError when using timeout value in repo sync

[root@preethi ~]# rpm -q pulp
pulp-0.0.181-1.fc14.noarch


[root@preethi ~]# pulp-admin repo sync --id=f15 --timeout=minutes:10 -F
error: operation failed: AttributeError: 'datetime.timedelta' object has no attribute 'schedule'
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo sync --id=f15 --timeout=hours:1 -F
error: operation failed: AttributeError: 'datetime.timedelta' object has no attribute 'schedule'

Comment 1 James Slagle 2011-06-20 21:36:46 UTC
committed in 9d2a41366811608d9e3564060a5ef11751668350

There was an arg/keyword arg mismatch in a function call.  Also, i fixed the command help to show the correct example format for a timeout value.

Comment 2 Jeff Ortel 2011-06-22 21:12:20 UTC
build: 0.196

Comment 3 Preethi Thomas 2011-08-09 21:56:32 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.223-1.fc14.noarch

[root@preethi ~]# pulp-admin repo sync --id=f14  --timeout=P2Y3M4DT5H6M
Sync for repository f14 started
Use "repo status" to check on the progress
[root@preethi ~]#

Comment 4 Preethi Thomas 2011-08-16 14:01:04 UTC
Closing with Community Release 15

pulp-0.0.223-4.