Skip to content

Commit

Permalink
Fix Capsule.install when used w/o kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
lpramuk committed Apr 9, 2024
1 parent 21580fc commit 5c51e79
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 @@ -1597,7 +1597,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 5c51e79

Please sign in to comment.