mirror of
https://github.com/certbot/certbot.git
synced 2026-01-24 19:22:07 +03:00
--dry-run implies --break-my-certs
This commit is contained in:
@@ -845,7 +845,7 @@ class HelpfulArgumentParser(object):
|
||||
if self.verb != "certonly":
|
||||
raise errors.Error("--dry-run currently only works with the "
|
||||
"'certonly' subcommand")
|
||||
parsed_args.staging = True
|
||||
parsed_args.break_my_certs = parsed_args.staging = True
|
||||
|
||||
return parsed_args
|
||||
|
||||
|
||||
@@ -402,6 +402,7 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
||||
|
||||
def _assert_dry_run_flag_worked(self, namespace):
|
||||
self.assertTrue(namespace.dry_run)
|
||||
self.assertTrue(namespace.break_my_certs)
|
||||
self.assertTrue(namespace.staging)
|
||||
self.assertEqual(namespace.server, constants.STAGING_URI)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user