From c499825cf78cdc20cd0b0c4b1442e756cc510924 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 25 Apr 2006 19:36:39 +0000 Subject: 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 --- src/sbin/bcfg2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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''' -- cgit v1.2.3-1-g7c22