summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
authorJonathan Billings <jsbillin@umich.edu>2011-04-25 11:19:06 -0400
committerJonathan Billings <jsbillin@umich.edu>2011-04-25 11:19:06 -0400
commitb748d1a5fde80fa18913b67ae6eccf415d78fed3 (patch)
treec4303cda1ddc1c3cb3ce100c1d41a2543f703824 /src/lib/Client/Frame.py
parent66642f84fd71e9230245b11718bf9a7e96ba0c7f (diff)
downloadbcfg2-b748d1a5fde80fa18913b67ae6eccf415d78fed3.tar.gz
bcfg2-b748d1a5fde80fa18913b67ae6eccf415d78fed3.tar.bz2
bcfg2-b748d1a5fde80fa18913b67ae6eccf415d78fed3.zip
Fix the bcfg2 client -r option
The man page for 'bcfg2' says to use -r 'all', 'Service' or 'Package', but the code only responded to -r 'all', 'service' or 'package'. Update the client to allow 'all', 'service', 'Service', 'package' and 'Package'.
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r--src/lib/Client/Frame.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index f87610dcb..60d158eb1 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -200,10 +200,10 @@ class Frame:
if self.setup['remove']:
if self.setup['remove'] == 'all':
self.removal = self.extra
- elif self.setup['remove'] == 'services':
+ elif self.setup['remove'] in ['services', 'Services']:
self.removal = [entry for entry in self.extra \
if entry.tag == 'Service']
- elif self.setup['remove'] == 'packages':
+ elif self.setup['remove'] in ['packages', 'Packages']:
self.removal = [entry for entry in self.extra \
if entry.tag == 'Package']