You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launchpad user Samuel Matzek(smatzek) wrote on 2016-01-06T18:54:38.257894+00:00
I know of two examples in the documentation that contain dashes in config keys when they need to be underscores to function at runtime.
Following the examples in this case can lead to a lot of wasted time and the dash vs underscore difference can be easy to miss, even when looking at the code to see why things aren't working.
This user/groups example has 3 occurrences of lock-passwd that should be lock_passwd
This particular one is very frustrating when you hit it because when you hit it you're usually trying to set lock_passwd to False because you have some need to log into the account using a password but when you specify anything on lock-passwd the value of lock_passwd still defaults to True and locks you out.
The text was updated successfully, but these errors were encountered:
This bug was originally filed in Launchpad as LP: #1531582
Launchpad details
Launchpad user Samuel Matzek(smatzek) wrote on 2016-01-06T18:54:38.257894+00:00
I know of two examples in the documentation that contain dashes in config keys when they need to be underscores to function at runtime.
Following the examples in this case can lead to a lot of wasted time and the dash vs underscore difference can be easy to miss, even when looking at the code to see why things aren't working.
The two locations that have caused problems are:
http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config-resolv-conf.txt
In this example manage-resolv-conf should be manage_resolv_conf since that is what the module is really looking for.
and
http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config-user-groups.txt
This user/groups example has 3 occurrences of lock-passwd that should be lock_passwd
This particular one is very frustrating when you hit it because when you hit it you're usually trying to set lock_passwd to False because you have some need to log into the account using a password but when you specify anything on lock-passwd the value of lock_passwd still defaults to True and locks you out.
The text was updated successfully, but these errors were encountered: