[Ovirt-devel] [PATCH server] Fix admin_dns_server variable to use interfaces[admin_dev] rather than admin_ip which no longer exists

Joey Boggs jboggs at redhat.com
Tue Mar 31 15:57:29 UTC 2009


Enter the dhcp domain you wish to use (example: example.com): |ovirt.priv| ovirt.priv
/usr/sbin/ovirt-installer:218: undefined local variable or method `admin_ip' for #<Object:0xb80d79ac> (NameError)
---
 installer/bin/ovirt-installer |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/installer/bin/ovirt-installer b/installer/bin/ovirt-installer
index f25998b..2d88886 100755
--- a/installer/bin/ovirt-installer
+++ b/installer/bin/ovirt-installer
@@ -215,7 +215,7 @@ if dhcp_setup == "n"
     dhcp_start = prompt_for_answer("Enter the dhcp pool start address (example: 3):", :regex => OCTET)
     dhcp_stop = prompt_for_answer("Enter the dhcp pool end addess (example: 100):", :regex => OCTET)
     dhcp_domain = prompt_for_answer("Enter the dhcp domain you wish to use (example: example.com):", :default => dnsdomainname.chomp, :regex => IP_OR_FQDN)
-    admin_dns_server = admin_ip.scan(/\s*inet addr:([\d.]+)/)
+    admin_dns_server = interfaces[admin_dev]
     admin_network_gateway = prompt_for_answer("Enter the network gateway for your Admin network (example: 192.168.50.254):", :default => default_gw.chomp, :regex => IP_OR_FQDN)
     tftp_setup = prompt_yes_no("Provide pxe/tftp capability?")
 end
-- 
1.6.0.6




More information about the ovirt-devel mailing list