Add type for mtu field in docker role

Closes-Bug: #2066032

This patch adds an integer type to the task in the docker role that
generates the docker daemon config. This was previously uncast and
defaulting to a string type, which causes an error with certain docker
versions (via the Rocky 9.3 distro). See bug description for more info.

Change-Id: I2a996fa22fedece2c894b378fadbfc5dd0c045b6
This commit is contained in:
Adam McCartney 2024-05-17 13:49:38 +02:00
parent 617eed4741
commit 2e7b5287f3

View File

@ -11,7 +11,7 @@
{%- set _ = options.update({"registry-mirrors": docker_registry_mirrors}) -%} {%- set _ = options.update({"registry-mirrors": docker_registry_mirrors}) -%}
{%- endif -%} {%- endif -%}
{%- if docker_daemon_mtu -%} {%- if docker_daemon_mtu -%}
{%- set _ = options.update({"mtu": docker_daemon_mtu}) -%} {%- set _ = options.update({"mtu": docker_daemon_mtu | int}) -%}
{%- endif -%} {%- endif -%}
{%- if docker_daemon_live_restore | bool -%} {%- if docker_daemon_live_restore | bool -%}
{%- set _ = options.update({"live-restore": docker_daemon_live_restore | bool}) -%} {%- set _ = options.update({"live-restore": docker_daemon_live_restore | bool}) -%}