Skip to content

Commit 10022d6

Browse files
committed
node: annotate Node.upload_config to accept config_xml as bytes
This is what set_config_element actually passes so this fixes a type error
1 parent 569c47f commit 10022d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jenkinsapi/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def load_config(self) -> None:
379379
self._config = self.get_config()
380380
self._get_config_element_tree()
381381

382-
def upload_config(self, config_xml: str) -> None:
382+
def upload_config(self, config_xml: Union[str, bytes]) -> None:
383383
"""
384384
Uploads config_xml to the config.xml for the node.
385385
"""

0 commit comments

Comments
 (0)