1
0
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:
Brad Warren
2016-01-28 18:24:47 -08:00
parent 688b92f528
commit c816bfd0b7
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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)