From d7ff5930ddb81aed029449ca199d2ff3b490ff4f Mon Sep 17 00:00:00 2001 From: Antoine Drochon Date: Tue, 15 Feb 2022 15:01:21 -0800 Subject: [PATCH] fix regression with expanduser --- bin/akamai-mfa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/akamai-mfa b/bin/akamai-mfa index c1b9ff7..ff8d065 100755 --- a/bin/akamai-mfa +++ b/bin/akamai-mfa @@ -85,7 +85,7 @@ class MFAConfig(): eventparser.add_argument("--noreceipt", default=False, action="store_true", help="Discard the receipt attribute to save log space") - self.parser.add_argument("--edgerc", type=argparse.FileType('r'), default=os.path.expanduser("~/.edgerc"), + self.parser.add_argument("--edgerc", type=str, default="~/.edgerc", help='Location of the credentials file (default is "~/.edgerc")') self.parser.add_argument("--section", default="default", help="Section inside .edgerc, default is [default]")