From a482af52c4fab7fbb3aa00a828dea318666b6203 Mon Sep 17 00:00:00 2001 From: penguhyang Date: Wed, 28 Oct 2015 22:31:53 -0400 Subject: [PATCH] correct to generate stateful-mgmtnode osimage on rh7.0 --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 535afed84..4d0a99052 100755 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -829,7 +829,7 @@ sub update_tables_with_mgt_image #if the osver does not match the osver of MN, return my $myosver = xCAT::Utils->osver("all"); $myosver =~ s/,//; - if ( $osver ne $myosver ) { + if(xCAT::Utils->version_cmp("$osver","$myosver")!=0){ return 0; }