summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-02-27 17:04:55 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-02-27 17:04:55 +0000
commit9403cf16884d17d9391cbb329dceed920f0becf0 (patch)
treec2bcfc27d05cadda5042b2a0b33b952adc423ef6 /src/sbin
parentb6b70b7faf9a1a3773ff3127a93d3da0b7ca345c (diff)
downloadbcfg2-9403cf16884d17d9391cbb329dceed920f0becf0.tar.gz
bcfg2-9403cf16884d17d9391cbb329dceed920f0becf0.tar.bz2
bcfg2-9403cf16884d17d9391cbb329dceed920f0becf0.zip
Complain if a bogus value for -r is used. Resolves ticket #25
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1770 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg22
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index fc589c0ef..72c58cbe9 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -99,6 +99,8 @@ class Client:
self.setup = {}
self.get_setup(args)
self.logger.debug(self.setup)
+ if self.setup['remove'] not in [False, 'all', 'services', 'packages']:
+ self.logger.error("Got unknown argument %s for -r" % (self.setup['remove'])
def load_toolset(self, toolset_name):
'''Import client toolset modules'''