Skip to content

Commit

Permalink
[6.14.z] Fix maintain CLI caching class attributes (#12941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Oct 19, 2023
1 parent 861ab2a commit 70e12f6
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 70e12f6

Please sign in to comment.