diff --git a/certbot/cli.py b/certbot/cli.py index 5d440f0b4..2580debb1 100644 --- a/certbot/cli.py +++ b/certbot/cli.py @@ -129,6 +129,7 @@ ZERO_ARG_ACTIONS = set(("store_const", "store_true", # This dictionary is used recursively, so if A modifies B and B modifies C, # it is determined that C was modified by the user if A was modified. VAR_MODIFIERS = {"account": set(("server",)), + "renew_hook": set(("deploy_hook",)), "server": set(("dry_run", "staging",)), "webroot_map": set(("webroot_path",))} diff --git a/certbot/tests/cli_test.py b/certbot/tests/cli_test.py index e887e3043..65f414a2a 100644 --- a/certbot/tests/cli_test.py +++ b/certbot/tests/cli_test.py @@ -438,6 +438,10 @@ class SetByCliTest(unittest.TestCase): def setUp(self): reload_module(cli) + def test_deploy_hook(self): + self.assertTrue(_call_set_by_cli( + 'renew_hook', '--deploy-hook foo'.split(), 'renew')) + def test_webroot_map(self): args = '-w /var/www/html -d example.com'.split() verb = 'renew'