diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-02-27 17:04:55 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-02-27 17:04:55 +0000 |
commit | 9403cf16884d17d9391cbb329dceed920f0becf0 (patch) | |
tree | c2bcfc27d05cadda5042b2a0b33b952adc423ef6 /src | |
parent | b6b70b7faf9a1a3773ff3127a93d3da0b7ca345c (diff) | |
download | bcfg2-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')
-rwxr-xr-x | src/sbin/bcfg2 | 2 |
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''' |