deploy apply-config-changes=True fails with boolean values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Fix Released
|
High
|
Tom Haddon |
Bug Description
Hi,
This is a variation of LP:1633442 where apply-config-
| ERROR option "debug" expected boolean, got "None"
| 2018-03-29 02:08:45 [ERROR] Error calling external process
| Traceback (most recent call last):
| File "/usr/lib/
| args.func(args)
| File "/usr/lib/
| return method(*args, **kwargs)
| File "/usr/lib/
| manifest.
| File "/usr/lib/
| auto_secrets=
| File "/usr/lib/
| diff_processor=
| File "/usr/lib/
| diff_processor(
| File "/usr/lib/
| d, preview=False),
| File "/usr/lib/
| subprocess.
| File "/usr/lib/
| raise CalledProcessEr
| CalledProcessError: Command '['juju', 'config', 'nrpe', 'lacp_bonds=None', 'xfs_errors=None', 'users=-w 20 -c 25', 'dont_blame_
From the above, and the config options for the nrpe charm[1], both "debug" and "dont_blame_nrpe" are booleans.
This is with mojo 0.5.0.
Related branches
- Paul Collins: Approve (lgtm)
- Tom Haddon: Needs Resubmitting
- Haw Loeung: Pending requested
-
Diff: 102 lines (+44/-5)5 files modifiedmojo/cli.py (+1/-0)
mojo/juju/check.py (+1/-0)
mojo/phase.py (+6/-3)
mojo/tests/test_phase.py (+13/-2)
mojo/tests/testdata/deployer-diff2.yaml (+23/-0)
Changed in mojo: | |
assignee: | nobody → Tom Haddon (mthaddon) |
Changed in mojo: | |
importance: | Undecided → High |
Changed in mojo: | |
status: | Triaged → Fix Committed |
Changed in mojo: | |
status: | Fix Committed → Fix Released |
Those "None" values are odd, and may indicate that the option should in fact not be set at all?