Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable root_password in discovered_host_edit_view #1397

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -389,6 +389,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
Loading