From de36e0ed94e7d0190234a52114b98f12f1f15775 Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:04:00 -0500 Subject: [PATCH] Check if Default instead of Kwarg (#453) --- CHANGELOG.rst | 2 +- brewtils/request_handling.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 67960972..3a3ba64e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,7 +5,7 @@ Brewtils Changelog ------ TBD -- Self Referecing SystemClient now supports kwargs provided through the Parameter annotation +- Self Referencing SystemClient now supports default values provided through the Parameter annotation 3.24.0 ------ diff --git a/brewtils/request_handling.py b/brewtils/request_handling.py index 68f52f72..52e0bc3e 100644 --- a/brewtils/request_handling.py +++ b/brewtils/request_handling.py @@ -66,7 +66,7 @@ def process_command(self, request): for command in self._system.commands: if command.name == request.command: for parameter in command.parameters: - if parameter.is_kwarg: + if parameter.default: if parameter.key not in request.parameters: request.parameters[parameter.key] = parameter.default