From 2392736aeaa5668938ad08fdefb031e2213d6eb4 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 27 Oct 2010 12:32:16 +0000 Subject: [PATCH] fix build of makedhcp command so that it really calls using the -l flag git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7940 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index 1c484b55b..f5fdbf99b 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -645,7 +645,7 @@ sub setup_DHCP $cmdref->{command}->[0] = "makedhcp"; $cmdref->{arg}->[0] = "-l"; $cmdref->{cwd}->[0] = "/opt/xcat/sbin"; - $cmdref->{arg}->[0] = "-n"; + $cmdref->{arg}->[1] = "-n"; no strict "refs"; my $modname = "dhcp"; ${"xCAT_plugin::" . $modname . "::"}{process_request} @@ -660,7 +660,7 @@ sub setup_DHCP $cmdref->{command}->[0] = "makedhcp"; $cmdref->{arg}->[0] = "-l"; $cmdref->{cwd}->[0] = "/opt/xcat/sbin"; - $cmdref->{arg}->[0] = "-a"; + $cmdref->{arg}->[1] = "-a"; my $modname = "dhcp"; ${"xCAT_plugin::" . $modname . "::"}{process_request}