From ca12ed5d98eec5c4ec210c11c34e7efa31405693 Mon Sep 17 00:00:00 2001 From: Timothy Appnel Date: Sat, 7 Nov 2015 18:16:20 -0500 Subject: [PATCH] Added the checksum_algo alias to the stats module. --- files/stat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/stat.py b/files/stat.py index 61c77a2ef31..852ddd5afd2 100644 --- a/files/stat.py +++ b/files/stat.py @@ -53,6 +53,7 @@ options: required: false choices: [ 'sha1', 'sha224', 'sha256', 'sha384', 'sha512' ] default: sha1 + aliases: [ 'checksum_algo' ] version_added: "2.0" author: "Bruce Pennypacker (@bpennypacker)" ''' @@ -292,7 +293,7 @@ def main(): follow = dict(default='no', type='bool'), get_md5 = dict(default='yes', type='bool'), get_checksum = dict(default='yes', type='bool'), - checksum_algorithm = dict(default='sha1', type='str', choices=['sha1', 'sha224', 'sha256', 'sha384', 'sha512']) + checksum_algorithm = dict(default='sha1', type='str', choices=['sha1', 'sha224', 'sha256', 'sha384', 'sha512'], aliases=['checksum_algo']) ), supports_check_mode = True ) @@ -381,4 +382,4 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() \ No newline at end of file +main()