Skip to content

Commit ebb9752

Browse files
feat: Add support for downgrading package(s) on host
Signed-off-by: Rushikesh Jadhav <rushikesh7@gmail.com>
1 parent 4376e57 commit ebb9752

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/host.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ def get_last_yum_history_tid(self):
482482
except ValueError:
483483
raise Exception('Unable to parse correctly last yum history tid. Output:\n' + history_str)
484484

485+
def yum_downgrade(self, packages):
486+
logging.info('Downgrade packages: %s on host %s' % (' '.join(packages), self))
487+
return self.ssh(['yum', 'downgrade', '-y'] + packages)
488+
485489
def yum_install(self, packages, enablerepo=None):
486490
logging.info('Install packages: %s on host %s' % (' '.join(packages), self))
487491
enablerepo_cmd = ['--enablerepo=%s' % enablerepo] if enablerepo is not None else []

0 commit comments

Comments
 (0)