pylint cleanup

This commit is contained in:
James Kasten
2015-01-24 03:31:33 -08:00
parent 2ff3c8396e
commit f30bf2ca87
3 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -364,7 +364,8 @@ def init_key(key_size):
key_pem = crypto_util.make_key(key_size)
except ValueError as err:
logging.fatal(str(err))
logging.info("Note: The default RSA key size is %d bits.", CONFIG.RSA_KEY_SIZE)
logging.info("Note: The default RSA key size is %d bits.",
CONFIG.RSA_KEY_SIZE)
sys.exit(1)
# Save file
+2 -2
View File
@@ -41,7 +41,7 @@ def main():
help="Revert configuration N number of checkpoints.")
parser.add_argument("-B", "--keysize", dest="key_size", type=int,
default=CONFIG.RSA_KEY_SIZE, metavar="N",
help="RSA key shall be sized N bits. [%d]" % CONFIG.RSA_KEY_SIZE)
help="RSA key shall be sized N bits. [%(default)s]")
parser.add_argument("-k", "--revoke", dest="revoke", action="store_true",
help="Revoke a certificate.")
parser.add_argument("-v", "--view-config-changes",
@@ -244,7 +244,7 @@ def rollback(checkpoints):
if not yes:
logging.info("The error message is above.")
logging.info(
"Configuration was not rolled back.".format(os.linesep))
"Configuration was not rolled back.")
return
logging.info("Rolling back using the Reverter module")