diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-04-25 19:36:39 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-04-25 19:36:39 +0000 |
commit | c499825cf78cdc20cd0b0c4b1442e756cc510924 (patch) | |
tree | 7a182f6262db8b8c864e8e25b881096f308464af /src | |
parent | 055dd056560b7b05ec7c1e2e9d0c5dd699e4e71a (diff) | |
download | bcfg2-c499825cf78cdc20cd0b0c4b1442e756cc510924.tar.gz bcfg2-c499825cf78cdc20cd0b0c4b1442e756cc510924.tar.bz2 bcfg2-c499825cf78cdc20cd0b0c4b1442e756cc510924.zip |
Fix client use of -r and -n together (Resolves ticket #49)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1849 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 0720d1b53..410114280 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -77,6 +77,9 @@ class Client: if (self.setup["file"] != False) and (self.setup["cache"] != False): print "cannot use -f and -c together" raise SystemExit, 1 + if self.setup['remove'] and self.setup['dryrun']: + print "cannot use -n and -r together" + raise SystemExit, 1 def load_toolset(self, toolset_name): '''Import client toolset modules''' |