From 985421561781b53027162c56f18c3cf68f43b644 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Fri, 10 May 2019 10:36:31 -0400 Subject: [PATCH] Inform the user when arch cannot automatically be detected, if we are in the correct plugin --- xCAT-server/lib/xcat/plugins/anaconda.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index a7764cc8c..ccaabae36 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2124,8 +2124,8 @@ sub copycd } else { - print "DEBUG - [anaconda.pm] Could not auto-detect operating system.\n"; # Cannot continue with what was detected, or attributes provided + print "DEBUG - [anaconda.pm] Could not auto-detect operating system. Maybe some other plugin can, return.\n"; return; } } @@ -2147,10 +2147,14 @@ sub copycd if ($arch eq "ppc") { $arch = "ppc64" } } - # At this point, if arch is not provided and we cannot determine it, return + # At this point, if arch is not provided and we cannot determine it, inform the user unless ($arch) { - print "DEBUG - [anaconda.pm] ARCH not detected, provided an OS ARCH using the -a option.\n"; + $callback->( + { + error => "copycds could not identify the ARCH, you may wish to try -a .", errorcode => [1] + } + ); return; }