Version must be quoted (otherwise it is printed as 2.1) (#42496)

This commit is contained in:
Felix Fontein 2018-07-09 12:53:59 +02:00 committed by Matt Clay
parent c3f2e4679c
commit 27e57e41d1

View file

@ -826,7 +826,7 @@ def main():
supports_check_mode=True,
)
if module._name == 'letsencrypt':
module.deprecate("The 'letsencrypt' module is being renamed 'acme_certificate'", version=2.10)
module.deprecate("The 'letsencrypt' module is being renamed 'acme_certificate'", version='2.10')
# AnsibleModule() changes the locale, so change it back to C because we rely on time.strptime() when parsing certificate dates.
module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')