Skip to content

Commit

Permalink
Fix maintain CLI caching class attributes (#12918)
Browse files Browse the repository at this point in the history
(cherry picked from commit ea7b5c9)
  • Loading branch information
lpramuk authored and web-flow committed Oct 18, 2023
1 parent c595d56 commit 524fcca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions robottelo/cli/sm_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,23 @@ 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))

@classmethod
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))

@classmethod
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))

Expand Down Expand Up @@ -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))

0 comments on commit 524fcca

Please sign in to comment.