From 708d5d30d2f8434c66afec834285426666ed851c Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Sun, 4 Aug 2024 20:46:20 +0200 Subject: [PATCH] Change formatting of priority and default from 25 to 200 --- filter_plugins/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter_plugins/core.py b/filter_plugins/core.py index 72456cd..36ee5c6 100644 --- a/filter_plugins/core.py +++ b/filter_plugins/core.py @@ -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)),