Skip to content

Commit

Permalink
Remove Purpose addons from airgun code
Browse files Browse the repository at this point in the history
  • Loading branch information
jameerpathan111 committed Nov 28, 2024
1 parent 7a4c7b0 commit aaa533d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions airgun/views/contenthost.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
ConfirmationDialog,
EditableEntry,
EditableEntryCheckbox,
EditableEntryMultiCheckbox,
EditableEntrySelect,
Pagination,
ReadOnlyEntry,
Expand Down Expand Up @@ -147,7 +146,6 @@ class details(SatTab):
service_level = EditableEntrySelect(name='Service Level (SLA)')
usage_type = EditableEntrySelect(name='Usage Type')
role = EditableEntrySelect(name='Role')
addons = EditableEntryMultiCheckbox(name='Add ons')
# Content Host Properties
os = ReadOnlyEntry(
locator=".//dt[.='OS']/following-sibling::dd[not(contains(@class, 'ng-hide'))]"
Expand Down
2 changes: 0 additions & 2 deletions airgun/views/host_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
ExpandableTable,
FormSelect as OUIAFormSelect,
PatternflyTable,
Select as OUIASelect,
)

from airgun.views.common import BaseLoggedInView
Expand Down Expand Up @@ -772,7 +771,6 @@ class EditSystemPurposeView(View):
sla = OUIAFormSelect('service-level-select')
usage = OUIAFormSelect('usage-select')
release_version = OUIAFormSelect('release-version-select')
add_ons = OUIASelect('syspurpose-addons-select')

save = OUIAButton('save-syspurpose')
cancel = OUIAButton('cancel-syspurpose')
Expand Down
2 changes: 1 addition & 1 deletion airgun/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ def fill(self, values):
"""Check or uncheck one of the checkboxes
:param value: string with specification of fields' values
Example: value={'details.addons': {'Test addon 1': True, 'Test addon 2': False}}
Example: value={'details.role': {'Test role 1': True, 'Test role 2': False}}
"""
for name, value in values.items():
self.checkboxes[name].fill(value)
Expand Down

0 comments on commit aaa533d

Please sign in to comment.