From 2b6cd62a56531eab3c630493e86b9de58d9fd56e Mon Sep 17 00:00:00 2001 From: David Moore Date: Sat, 18 May 2024 09:00:03 -0400 Subject: [PATCH] fixup --- airgun/entities/errata.py | 7 ++++--- airgun/views/errata.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/airgun/entities/errata.py b/airgun/entities/errata.py index bbb579ef2..fbebb262c 100644 --- a/airgun/entities/errata.py +++ b/airgun/entities/errata.py @@ -66,7 +66,7 @@ def install(self, entity_name, host_names): :param str host_names: content host name to apply errata on pass 'All' for any available hosts, or pass a list of str hostnames, - or single str hostname. + or pass a single str hostname. """ view = self.navigate_to( self, @@ -80,8 +80,9 @@ def install(self, entity_name, host_names): if host_names == "All": # clear search to show all hosts, select_all view.content_hosts.search(" ") - for row in view.content_hosts.table.row(): - row[0].fill(True) + view.content_hosts.select_all.fill(True) + # for row in view.content_hosts.table.row(): + # row[0].fill(True) elif isinstance(host_names, list): # clear search to show all hosts view.content_hosts.search(" ") diff --git a/airgun/views/errata.py b/airgun/views/errata.py index eed66a8e0..21e1b1bcd 100644 --- a/airgun/views/errata.py +++ b/airgun/views/errata.py @@ -80,6 +80,7 @@ class content_hosts(SatTab): TAB_NAME = 'Content Hosts' environment_filter = SatSelect(".//select[@ng-model='environmentFilter']") searchbox = Search() + select_all = Checkbox(locator=".//input[@type='checkbox'][@ng-change='allSelected()']") apply = Text(".//button[@ng-click='goToNextStep()']") table = SatTable( locator=".//table",