[Ovirt-devel] [PATCH server] Fix admin_dns_server variable to use interfaces[admin_dev] rather than admin_ip which no longer exists
Steve Linabery
slinabery at redhat.com
Wed Apr 1 18:36:24 UTC 2009
On Tue, Mar 31, 2009 at 11:57:29AM -0400, Joey Boggs wrote:
> 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
>
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel
Works for me, ACK.
Steve
More information about the ovirt-devel
mailing list