Skip to content

Commit

Permalink
Enable root_password in discovered_host_edit_view (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored May 29, 2024
1 parent 2de1aa7 commit 93899bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airgun/entities/discoveredhosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def provision(
else:
view.customize_create.click()
discovered_host_edit_view = DiscoveredHostEditProvisioningView(self.browser)
if 'operating_system.root_password' in host_values:
discovered_host_edit_view.operating_system.disable_passwd.click()
discovered_host_edit_view.fill(host_values)
self.browser.click(discovered_host_edit_view.submit, ignore_ajax=True)
self.browser.plugin.ensure_page_safe(timeout='120s')
Expand Down
1 change: 1 addition & 0 deletions airgun/views/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ class operating_system(SatTab):
ptable = FilteredDropdown(id='host_ptable')
disk = TextInput(id='host_disk')
root_password = TextInput(id='host_root_pass')
disable_passwd = Text('//a[@id="disable-pass-btn"]')

@View.nested
class interfaces(SatTab):
Expand Down

0 comments on commit 93899bd

Please sign in to comment.