Bug 726706

Summary: Error in repo sync schedule error message
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedKeywords: Triaged
Target Milestone: ---   
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 13:58:54 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-07-29 14:57:33 UTC
Description of problem:
Error message when trying to add a sync schedule to a repo repo that does not have source is wrong.

[root@preethi ~]# pulp-admin repo update --id=myrepo --interval=P1DT1H5M 
error: operation failed: PulpException: 'Cannot add schedule to repository with out sync source'


see it should be "without" and not "with out"




Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.217-1.fc14.noarch

Comment 1 John Matthews 2011-08-03 15:28:25 UTC
http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=052622b4ea527d046d634f5a7ecd1fe05f2eb5ef

$ git diff
diff --git a/src/pulp/server/api/scheduled_sync.py b/src/pulp/server/api/scheduled_sync.py
index 2059abf..3b1c32c 100644
--- a/src/pulp/server/api/scheduled_sync.py
+++ b/src/pulp/server/api/scheduled_sync.py
@@ -169,7 +169,7 @@ def update_repo_schedule(repo, new_schedule):
     @param new_schedule: dictionary representing new schedule
     """
     if repo['source'] is None:
-        raise PulpException(_('Cannot add schedule to repository with out sync source'))
+        raise PulpException(_('Cannot add schedule to repository without sync source'))
     repo['sync_schedule'] = validate_schedule(new_schedule)
     collection = Repo.get_collection()
     collection.save(repo, safe=True)

Comment 2 Jeff Ortel 2011-08-03 20:11:29 UTC
build: 0.219

Comment 3 Preethi Thomas 2011-08-08 16:35:32 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.222-1.fc14.noarch
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo create --id=myrepo
Successfully created repository [ myrepo ]

[root@preethi ~]#  pulp-admin repo update --id=myrepo --interval=P1DT1H5M
error: operation failed: PulpException: 'Cannot add schedule to repository without sync source'
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo create --id=myrepo1 --interval=P1DT1H5M
error: operation failed: PulpException: 'Cannot add schedule to repository without sync source'

Comment 4 Preethi Thomas 2011-08-16 13:58:54 UTC
Closing with Community Release 15

pulp-0.0.223-4.