From 9e3469b354b12fea893ebc704146b36ee374fdc6 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 17 Jul 2018 10:17:06 -0700 Subject: [PATCH] Clarify error message from /source/new (cherry picked from commit 5993802bc6f578a4a20d5832fe0c4149bdbcf563) --- src/pylorax/api/v0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/api/v0.py b/src/pylorax/api/v0.py index e268809b..85cb6280 100644 --- a/src/pylorax/api/v0.py +++ b/src/pylorax/api/v0.py @@ -1443,7 +1443,7 @@ def v0_api(api): system_sources = get_repo_sources("/etc/yum.repos.d/*.repo") if source["name"] in system_sources: - return jsonify(status=False, errors=["%s is a system source, it cannot be deleted." % source["name"]]), 400 + return jsonify(status=False, errors=["%s is a system source, it cannot be changed." % source["name"]]), 400 try: # Remove it from the RepoDict (NOTE that this isn't explicitly supported by the DNF API)