Merge lp://staging/~jose/charms/precise/juju-gui/add-blank-defaults into lp://staging/charms/juju-gui
Proposed by
José Antonio Rey
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~jose/charms/precise/juju-gui/add-blank-defaults |
Merge into: | lp://staging/charms/juju-gui |
Diff against target: |
26 lines (+3/-0) 1 file modified
config.yaml (+3/-0) |
To merge this branch: | bzr merge lp://staging/~jose/charms/precise/juju-gui/add-blank-defaults |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matt Bruzek (community) | Needs Fixing | ||
Review via email: mp+212885@code.staging.launchpad.net |
This proposal has been superseded by a proposal from 2014-04-24.
Commit message
Added blank defaults to the options that didn't have them
Description of the change
Currently, `charm proof` returns an error when there are options without defaults on the config.yaml file. I've added blank defaults for the options that didn't have them, so `charm proof` returns no errors now.
To post a comment you must log in.
Unmerged revisions
- 90. By José Antonio Rey
-
Removed blank default from login-help
- 89. By José Antonio Rey
-
Added blank defaults for missing ones
Hello Jose,
Thank you for working on this merge proposal! Your commitment to the communit is very impressive.
The current charm store policy does recommend that all configuration values have default values. However some older charms got in before this was a rule and consiquently some code actually depends on the value not being set. Since the hooks are python that is realized as a value of None in the code. When you default it to "" the configuration option is not None. We should be very careful with these kind of changes, to not break the code.
I followed all 4 configuration values through the code and believe that 3 of them are OK. But the login-help configuration value has the following code:
if login_help is None:
So when the login-help configuration option is "" it misses this block of code and the hard coded text is never set. I was able to see this text if you deploy the current juju-gui charm on the login page. If you deploy the juju-gui with your code the login text is empty and I do not believe this is what we want to happen.
Please leave the login-help configuration value without a default. I realize that charm proof will still report a warning here but this is a rare case where that is OK.
Thanks again for your work here! Keep being awesome Jose!