From 9a09552de561a0fff1da6ee13720ee9dfa66e211 Mon Sep 17 00:00:00 2001
From: lissav <lissav@us.ibm.com>
Date: Thu, 24 Oct 2013 08:05:59 -0400
Subject: [PATCH]  defect 3851, further enhancements

---
 xCAT-server/lib/xcat/plugins/updatenode.pm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm
index 6adc76019..425074fac 100644
--- a/xCAT-server/lib/xcat/plugins/updatenode.pm
+++ b/xCAT-server/lib/xcat/plugins/updatenode.pm
@@ -1103,16 +1103,16 @@ sub updatenode
 
         # check to see if the Management Node is in the noderange and
         # if it is abort
-        my $mname = xCAT::Utils->noderangecontainsMn(@$nodes);
-        if ($mname)
+        my @mname = xCAT::Utils->noderangecontainsMn(@$nodes);
+        if (@mname)
         {    # MN in the nodelist
+            my $nodes=join(',', @mname);
             my $rsp = {};
             $rsp->{error}->[0] =
-              "You must not run -k option against the Management Node:$mname.";
-            xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
+              "You must not run -k option against a management node: $nodes.";
+            xCAT::MsgUtils->message("E", $rsp, $callback, 1);
             return;
         }
-
         # setup the root ssh keys ( runs xdsh -k)
 
         &security_update_sshkeys($request, $callback, $subreq, \@$nodes);