From 5dcc4df5922e3fed766dd733627f008af456ca7a Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Wed, 18 Nov 2020 15:05:13 +0530 Subject: [PATCH] Fix option to not cleanup containers not in config In https://review.opendev.org/#/c/707278/ we added an option to not cleanup containers not in config, but it's broken. We should use --no-cleanup with action='strore_false' and default=True. Change-Id: I9570b5e4e68b8e1d4181bd5c514193d648a9128f --- paunch/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paunch/cmd.py b/paunch/cmd.py index ec2f0c0..f0cfac5 100644 --- a/paunch/cmd.py +++ b/paunch/cmd.py @@ -80,9 +80,9 @@ class Apply(command.Command): help=('Whether or not we disable the containers healthchecks') ) parser.add_argument( - '--cleanup', + '--no-cleanup', dest='cleanup', - action='store_true', + action='store_false', default=True, help=('Whether or not we delete containers missing in the config') )