From 573e58abcf996bf516a0e33011da310ad37a9ad3 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 16 May 2010 23:28:08 +0000 Subject: [PATCH] -Fix blade uuid formatting git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 3606c8e0c..19e9477e1 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -1627,7 +1627,12 @@ sub inv { if ($item =~ /^uuid/ or $item =~ /^guid/) { $data=$session->get([$bladeuuidoid,$slot]); if ($session->{ErrorStr}) { return (1,$session->{ErrorStr}); } - $data =~ s/ /-/g; + $data =~ s/ //; + $data =~ s/ /-/; + $data =~ s/ /-/; + $data =~ s/ /-/; + $data =~ s/ /-/; + $data =~ s/ //g; push @output,"UUID/GUID: ".$data; } if ($item =~ /^serial/) {