Skip to content

Commit 5a82d31

Browse files
committed
Pass ident value in streaming
1 parent bcd1036 commit 5a82d31

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/ansible_runner/config/_base.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class BaseConfig:
144144
fact_cache: str | None = field(metadata={MetaValues.TRANSMIT: False}, default=None)
145145
fact_cache_type: str = 'jsonfile'
146146
host_cwd: str | None = None
147-
ident: str | None = field(metadata={MetaValues.TRANSMIT: False}, default=None)
147+
ident: str | None = None
148148
json_mode: bool = False
149149
keepalive_seconds: int | None = field(metadata={MetaValues.TRANSMIT: False}, default=None)
150150
passwords: dict[str, str] | None = None
@@ -167,10 +167,22 @@ class BaseConfig:
167167
_CONTAINER_ENGINES = ('docker', 'podman')
168168

169169
def __post_init__(self) -> None:
170+
"""
171+
Completes object initialization after the Dataclass __init__() call is complete.
172+
173+
Finish initialization by setting other attribute defaults and normalize the path attributes
174+
by setting absolute paths. Also make sure that the private_data_dir and artifact directories
175+
exist, creating them if necessary.
176+
177+
The Runner, Transmitter, Worker and Processor objects all depend, in some manner, on this
178+
path normalization being completed when they are initialized (mostly for private_data_dir).
179+
180+
BaseConfig and RunnerConfig both make use of the ArtifactLoader object that is created here.
181+
"""
170182
# pylint: disable=W0613
171183

172184
self.command: list[str] = []
173-
self.registry_auth_path: str
185+
self.registry_auth_path: str = ""
174186
self.container_name: str = "" # like other properties, not accurate until prepare is called
175187
if self.container_image is None:
176188
self.container_image = ''

0 commit comments

Comments
 (0)