Skip to content

Commit

Permalink
Change formatting of priority and default from 25 to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
zstyblik committed Aug 4, 2024
1 parent aaac3be commit 708d5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filter_plugins/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ def parse_a2query(stdout):
def to_vhost_filename(vhost):
"""Turn apache_vhost item(dict) into a filename."""
try:
priority = int(vhost.get("priority", 25))
priority = int(vhost.get("priority", 200))
if "ssl" in vhost and vhost["ssl"]:
proto = "https"
else:
proto = "http"

servername = vhost["servername"]
result = "{:d}-{:s}_{:s}".format(priority, proto, servername)
result = "{:03d}-{:s}_{:s}".format(priority, proto, servername)
except Exception as exception:
raise AnsibleFilterError(
"to_vhost_filename - {:s}".format(to_native(exception)),
Expand Down

0 comments on commit 708d5d3

Please sign in to comment.