From 0875fc1d242afbacfd0a5c45cf425c370f4e0bb5 Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Sat, 7 Jun 2014 09:17:52 -0400 Subject: [PATCH] improved msg for getslnodes when missing dependencies for sl api --- xCAT-SoftLayer/bin/getslnodes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-SoftLayer/bin/getslnodes b/xCAT-SoftLayer/bin/getslnodes index d5549ad1c..5903054eb 100755 --- a/xCAT-SoftLayer/bin/getslnodes +++ b/xCAT-SoftLayer/bin/getslnodes @@ -40,7 +40,7 @@ my $hnmatch = $ARGV[0]; # if they specified a hostname match, only show svrs th readconf("$ENV{HOME}/.slconfig"); # get the userid and api key from the config file my $slinstalled = eval { push @INC, $CONFIG{apidir}; require SoftLayer::API::SOAP; }; -if (!$slinstalled) { die "Error: the SoftLayer::API::SOAP perl module is not installed. Download it using 'git clone https://github.com/softlayer/softlayer-api-perl-client' and put the directory in ~/.slconfig ."; } +if (!$slinstalled) { die "$@\nError: either the SoftLayer::API::SOAP perl module is not installed, or some dependencies are missing. Download it using 'git clone https://github.com/softlayer/softlayer-api-perl-client', put the directory in ~/.slconfig , and ensure its dependencies are installed."; } my $client = SoftLayer::API::SOAP->new('SoftLayer_Account', undef, $CONFIG{userid}, $CONFIG{apikey});