Merge lp:~rvb/maas/error-msg-format into lp:~maas-committers/maas/trunk

Proposed by Raphaël Badin
Status: Merged
Approved by: Raphaël Badin
Approved revision: no longer in the source branch.
Merged at revision: 3446
Proposed branch: lp:~rvb/maas/error-msg-format
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 32 lines (+11/-11)
1 file modified
src/maasserver/forms.py (+11/-11)
To merge this branch: bzr merge lp:~rvb/maas/error-msg-format
Reviewer Review Type Date Requested Status
Newell Jensen (community) Approve
Review via email: mp+245936@code.launchpad.net

Commit message

Remove '\n' from API error messages.

Description of the change

Trivial drive-by fix that I decided to fix in a separate branch.

To post a comment you must log in.
Revision history for this message
Newell Jensen (newell-jensen) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/forms.py'
2--- src/maasserver/forms.py 2014-12-11 15:24:55 +0000
3+++ src/maasserver/forms.py 2015-01-09 11:12:23 +0000
4@@ -609,17 +609,17 @@
5 )
6
7
8-CLUSTER_NOT_AVAILABLE = mark_safe("""
9-The cluster controller for this node is not responding; power type
10-validation is not available.
11-""")
12-
13-
14-NO_ARCHITECTURES_AVAILABLE = mark_safe("""
15-No architectures are available to use for this node; boot images may not
16-have been imported on the selected cluster controller, or it may be
17-unavailable.
18-""")
19+CLUSTER_NOT_AVAILABLE = mark_safe(
20+ "The cluster controller for this node is not responding; power type "
21+ "validation is not available."
22+)
23+
24+
25+NO_ARCHITECTURES_AVAILABLE = mark_safe(
26+ "No architectures are available to use for this node; boot images may not "
27+ "have been imported on the selected cluster controller, or it may be "
28+ "unavailable."
29+)
30
31
32 class AdminNodeForm(NodeForm):