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
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)
build: 0.219
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'
Closing with Community Release 15 pulp-0.0.223-4.