Skip to content

Commit

Permalink
Fixes in cli_factory
Browse files Browse the repository at this point in the history
- remove @lru_cache from CLIFactory.__getattr__
- flip output format of cli.Repository.synchronize to from 'csv'
  to 'base' (output is not in csv format here)
  • Loading branch information
vsedmik authored and JacobCallahan committed Jan 11, 2024
1 parent 711a80c commit d97f667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion robottelo/cli/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def synchronize(cls, options, return_raw_response=None, timeout=3600000):
cls.command_sub = 'synchronize'
return cls.execute(
cls._construct_command(options),
output_format='csv',
output_format='base',
ignore_stderr=True,
return_raw_response=return_raw_response,
timeout=timeout,
Expand Down
1 change: 0 additions & 1 deletion robottelo/host_helpers/cli_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ def __init__(self, satellite):
self._satellite = satellite
self.__dict__.update(initiate_repo_helpers(self._satellite))

@lru_cache
def __getattr__(self, name):
"""We intercept the usual attribute behavior on this class to emulate make_entity methods
The keys in the dictionary above correspond to potential make_<key> methods
Expand Down

0 comments on commit d97f667

Please sign in to comment.