Bug 726706 - Error in repo sync schedule error message
Summary: Error in repo sync schedule error message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 25
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2011-07-29 14:57 UTC by Preethi Thomas
Modified: 2013-09-09 16:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:58:54 UTC
Embargoed:


Attachments (Terms of Use)

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.


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