diff options
author | Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> | 2022-01-30 05:00:21 +0100 |
---|---|---|
committer | Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> | 2022-01-30 05:03:22 +0100 |
commit | a4bd3e3b55cc842b50075e9cae912f7dc9e9cfa2 (patch) | |
tree | 00bd82df6d2c0ce96577030af0df9f6f3ca24184 /src/lib/Bcfg2/Client/__init__.py | |
parent | 49cf4482ea952de6bcf3c023c017309cd7926c15 (diff) | |
download | bcfg2-a4bd3e3b55cc842b50075e9cae912f7dc9e9cfa2.tar.gz bcfg2-a4bd3e3b55cc842b50075e9cae912f7dc9e9cfa2.tar.bz2 bcfg2-a4bd3e3b55cc842b50075e9cae912f7dc9e9cfa2.zip |
debconf: Support removing of conf entries
Diffstat (limited to 'src/lib/Bcfg2/Client/__init__.py')
-rw-r--r-- | src/lib/Bcfg2/Client/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/__init__.py b/src/lib/Bcfg2/Client/__init__.py index 157cc7f65..a7e0dade5 100644 --- a/src/lib/Bcfg2/Client/__init__.py +++ b/src/lib/Bcfg2/Client/__init__.py @@ -110,7 +110,7 @@ class Client(object): help='Only verify the given bundle(s)'), Bcfg2.Options.Option( '-r', '--remove', - choices=['all', 'services', 'packages', 'users'], + choices=['all', 'services', 'packages', 'users', 'conf'], help='Force removal of additional configuration items')), Bcfg2.Options.ExclusiveOptionGroup( Bcfg2.Options.PathOption( @@ -640,6 +640,9 @@ class Client(object): elif Bcfg2.Options.setup.remove == 'users': self.removal = [entry for entry in self.extra if entry.tag in ['POSIXUser', 'POSIXGroup']] + elif Bcfg2.Options.setup.remove == 'conf': + self.removal = [entry for entry in self.extra + if entry.tag == 'Conf'] candidates = [entry for entry in self.states if not self.states[entry]] |