From 0725e0b21dc5d5ef99339c03b1e7a636f3983020 Mon Sep 17 00:00:00 2001 From: Lukas Pramuk Date: Wed, 10 Apr 2024 12:53:57 +0200 Subject: [PATCH] Fix Capsule.install when used w/o kwargs (#14693) (cherry picked from commit d37f76c3c9b6be2a49922f960015e70c5aa68202) --- robottelo/hosts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robottelo/hosts.py b/robottelo/hosts.py index fc3256092d6..723fe993f2f 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -1545,7 +1545,8 @@ def install(self, installer_obj=None, cmd_args=None, cmd_kwargs=None): """General purpose installer""" if not installer_obj: command_opts = {'scenario': self.__class__.__name__.lower()} - command_opts.update(cmd_kwargs) + if cmd_kwargs: + command_opts.update(cmd_kwargs) installer_obj = InstallerCommand(*cmd_args, **command_opts) return self.execute(installer_obj.get_command(), timeout=0)