Skip to content

Commit

Permalink
Fix Capsule.install when used w/o kwargs (#14693)
Browse files Browse the repository at this point in the history
(cherry picked from commit d37f76c)
  • Loading branch information
lpramuk committed Apr 12, 2024
1 parent b2794cd commit 0725e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robottelo/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0725e0b

Please sign in to comment.