leader-set doesn't preserve newlines
Bug #1527595 reported by
Robert Ayres
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Won't Fix
|
Medium
|
Unassigned | ||
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
leader-set, called from within a charm, doesn't preserve newlines (and probably other whitespace) at the end of a value.
For example:
# using bash with debug-hooks
$ leader-set mystring=
$ leader-get mystring
mystring
$
Newlines are preserved in config.yaml values however:
$ juju set <charm> mystring=
# within charm
$ config-get mystring
mystring
<3 more line breaks>
$
I think it could lead to problems if the command is silently altering input. Especially if the charm needs to use multiline strings.
Juju version: 1.25.0-trusty-amd64
description: | updated |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju-core: | |
status: | Triaged → Won't Fix |
Changed in juju: | |
milestone: | 2.0.1 → none |
To post a comment you must log in.
Has this actually been fixed in Juju 2.0?
Just closing for the sake of lowering the bug count won't make bugs go away.