1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

sort the option_key to have a constant predictable line

This commit is contained in:
Michael Scherer 2013-10-13 13:47:23 +02:00
parent 264945a1f7
commit 7672e9fef8

View file

@ -254,7 +254,7 @@ def writekeys(module, filename, keys):
option_str = ""
if options:
option_strings = []
for option_key in options.keys():
for option_key in sorted(options.keys()):
if options[option_key]:
option_strings.append("%s=%s" % (option_key, options[option_key]))
else: