From d97f66729bcced16b51683d8c9d29000703065f0 Mon Sep 17 00:00:00 2001 From: Vladimir Sedmik Date: Thu, 11 Jan 2024 11:22:40 +0100 Subject: [PATCH] Fixes in cli_factory - 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) --- robottelo/cli/repository.py | 2 +- robottelo/host_helpers/cli_factory.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/robottelo/cli/repository.py b/robottelo/cli/repository.py index 85296f25e51..94fa8baa180 100644 --- a/robottelo/cli/repository.py +++ b/robottelo/cli/repository.py @@ -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, diff --git a/robottelo/host_helpers/cli_factory.py b/robottelo/host_helpers/cli_factory.py index 0007e0f6890..d440ce4376a 100644 --- a/robottelo/host_helpers/cli_factory.py +++ b/robottelo/host_helpers/cli_factory.py @@ -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_ methods