summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-14 18:20:43 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-14 18:20:43 +0000
commit0e2e5285579a378424b7a0878bd0903d7ff6e7bf (patch)
tree516e852cc643ee59e5478c5eb7c21b0589c62a98 /src
parentf551b28b845e64aee6b1e74bb45965e5771b833b (diff)
downloadbcfg2-0e2e5285579a378424b7a0878bd0903d7ff6e7bf.tar.gz
bcfg2-0e2e5285579a378424b7a0878bd0903d7ff6e7bf.tar.bz2
bcfg2-0e2e5285579a378424b7a0878bd0903d7ff6e7bf.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/sbin/bcfg27
1 files changed, 6 insertions, 1 deletions
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