Skip to content

Commit

Permalink
Fix maintain CLI caching class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpramuk committed Oct 18, 2023
1 parent a044fd2 commit 874c5ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions robottelo/cli/sm_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,31 @@ 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))

@classmethod
def status(cls, options=None):
"""Build satellite-maintain packages status"""
cls.command_sub = 'status'
cls.command_end = None
options = options or {}
return cls.sm_execute(cls._construct_command(options))

Expand All @@ -74,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 874c5ec

Please sign in to comment.