summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-04-25 19:36:39 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-04-25 19:36:39 +0000
commitc499825cf78cdc20cd0b0c4b1442e756cc510924 (patch)
tree7a182f6262db8b8c864e8e25b881096f308464af /src
parent055dd056560b7b05ec7c1e2e9d0c5dd699e4e71a (diff)
downloadbcfg2-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-xsrc/sbin/bcfg23
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'''