From 524fcca85774e8d3f66630736af82359394682a1 Mon Sep 17 00:00:00 2001 From: Lukas Pramuk Date: Wed, 18 Oct 2023 15:54:57 +0200 Subject: [PATCH] Fix maintain CLI caching class attributes (#12918) (cherry picked from commit ea7b5c952000e5566eb4ab459ef997b7df3221f6) --- robottelo/cli/sm_packages.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/robottelo/cli/sm_packages.py b/robottelo/cli/sm_packages.py index ece44a773e0..d4674279172 100644 --- a/robottelo/cli/sm_packages.py +++ b/robottelo/cli/sm_packages.py @@ -30,6 +30,7 @@ class Packages(Base): def lock(cls, options=None): """Build satellite-maintain packages lock""" cls.command_sub = 'lock' + cls.command_end = None options = options or {} return cls.sm_execute(cls._construct_command(options)) @@ -37,6 +38,7 @@ def lock(cls, options=None): def unlock(cls, options=None): """Build satellite-maintain packages unlock""" cls.command_sub = 'unlock' + cls.command_end = None options = options or {} return cls.sm_execute(cls._construct_command(options)) @@ -44,6 +46,7 @@ def unlock(cls, options=None): def is_locked(cls, options=None): """Build satellite-maintain packages is-locked""" cls.command_sub = 'is-locked' + cls.command_end = None options = options or {} return cls.sm_execute(cls._construct_command(options)) @@ -75,5 +78,6 @@ def update(cls, packages='', options=None): def check_update(cls, options=None): """Build satellite-maintain packages check-update""" cls.command_sub = 'check-update' + cls.command_end = None options = options or {} return cls.sm_execute(cls._construct_command(options))