From 0e2e5285579a378424b7a0878bd0903d7ff6e7bf Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 14 Sep 2005 18:20:43 +0000 Subject: add solaris support and change the toolset error message to be useful (Logical change 1.312) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1273 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index bbdccdf0a..0c2c59535 100644 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -29,8 +29,13 @@ def load_toolset(toolset, config, clientsetup): print 'Selected RedHat Toolset...' mod = __import__("Bcfg2.Client.Redhat", globals(), locals(), ['*']) return mod.Redhat(config, clientsetup) + elif toolset == 'solaris': + if setup['verbose']: + print "Selected Solaris Toolset" + mod = __import__("Bcfg2.Client.Solaris", globals(), locals(), ['*']) + return mod.Solaris(config, clientsetup) else: - print "Toolset not correctly provided by the server." + print "Got unsupported toolset %s from server." % (toolset) raise SystemExit, 1 -- cgit v1.2.3-1-g7c22