You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/system
Lorin Hochstein ec2fc7c983 authorized_key: Set manage_dir default value
This commit fixes a bug where the authorized_key module causes
the ~user/.ssh directory to be owned by root instead of the user,
when the manage_dir argument is not specified.

If the manage_dir argument was not specified, the module behaved as if
manage_dir was set to false, even though it's supposed to default to
true.

This module assumed that an optional argument, with no default
specified, will not be present in the module.params dictionary.

What actually seems to happen is that the argument does appear in
the module.params dictionary with a value of None.

The upside is that this line was evaluating to None instead of
true:

    manage_dir = params.get("manage_dir", True)

I fixed the problem in this particular module by explicitly specifying
the default value for the manage_dir arugment. But if this bug
occurred because of a change in behavior in AnsibleModule, then other
modules may be broken as well.
13 years ago
..
authorized_key authorized_key: Set manage_dir default value 13 years ago
cron Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
facter Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
filesystem Change filesystem module message. 13 years ago
group FreeBSD group operations is now supported properly. 13 years ago
lvg Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
lvol Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
mount Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
ohai Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
ping Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
seboolean Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
selinux Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
service Fixes #2991: Service module pattern argument ignored. 13 years ago
setup Merge branch 'facter-fix' of git://github.com/flyapen/ansible into devel 13 years ago
sysctl Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago
user Fixes #2924: User creation always reports 'changed' 13 years ago
zfs Allow modules to be categorized, and also sort them when generating the documentation. 13 years ago