From df75b526a675aeaa9147f8211222b3d74bbcba9c Mon Sep 17 00:00:00 2001 From: James Falcon Date: Tue, 17 Sep 2024 13:00:54 -0500 Subject: [PATCH] chore: fix typing of userdata_raw (#5710) --- cloudinit/sources/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index d8182086fa0..6d906ec403b 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -319,7 +319,7 @@ def __init__(self, sys_cfg, distro: Distro, paths: Paths, ud_proc=None): self.paths = paths self.userdata: Optional[Any] = None self.metadata: dict = {} - self.userdata_raw: Optional[str] = None + self.userdata_raw: Optional[Union[str, bytes]] = None self.vendordata = None self.vendordata2 = None self.vendordata_raw = None