Skip to content

Commit

Permalink
Merge pull request #3 from akamai/development
Browse files Browse the repository at this point in the history
Fixed some minor bugs
  • Loading branch information
MikeSchiessl authored Jul 19, 2021
2 parents a22a16a + dbaa2ee commit 3044099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/akamai-mfa
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import os
import json


__VERSION__ = "0.0.5"
__VERSION__ = "0.0.6"
LOG_FMT = '%(asctime)s [%(levelname)s] %(threadName)s %(message)s'
MOST_RECENT_PADDING = 30

Expand Down Expand Up @@ -91,7 +91,7 @@ class MFAConfig():

self.parser.add_argument("--section", default="default", help="Section inside .edgerc, default is [default]")
self.parser.add_argument("--debug", '-d', action="store_true", default=False, help="Debug mode")
self.parser.add_argument('--user-agent-preix', dest='ua_prefix', default='Akamai-CLI', help=argparse.SUPPRESS)
self.parser.add_argument('--user-agent-prefix', dest='ua_prefix', default='Akamai-CLI', help=argparse.SUPPRESS)

try:
scanned_cli_args = self.parser.parse_args()
Expand All @@ -108,7 +108,7 @@ class MFAConfig():
if not edgerc_config.has_section(self.section):
err_msg = "ERROR: No section named %s was found in your .edgerc file\n" % self.section
err_msg += "ERROR: Please generate credentials for the script functionality\n"
err_msg += "ERROR: and run 'python gen_edgerc.py %s' to generate the credential file\n" % self.edgerc.name
err_msg += "ERROR: and run 'python gen_edgerc.py %s' to generate the credential file\n" % self.edgerc
sys.exit(err_msg)
for key, value in edgerc_config.items(self.section):
if key in MFAConfig.CONFIG_KEYS:
Expand Down
2 changes: 1 addition & 1 deletion cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"commands": [
{
"name": "mfa",
"version": "0.0.5",
"version": "0.0.6",
"description": "Akamai CLI for MFA"
}
]
Expand Down

0 comments on commit 3044099

Please sign in to comment.