Skip to content

Commit

Permalink
Disable default capture of Github config in auth init
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvaughn committed Aug 20, 2021
1 parent c3128fb commit 8ec7ded
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tapis_cli/commands/taccapis/v2/apim/auth_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ def get_parser(self, prog_name):

cntl = parser.add_argument_group("Workflow Options")

cntl.add_argument('--no-git',
cntl.add_argument('--github',
dest='do_git',
action='store_true',
help='Do not request git server credentials')
cntl.add_argument('--no-registry',
action='store_true',
help='Do not request registry credentials')
help='Configure Github credentials')
cntl.add_argument('--no-dockerhub',
dest='do_docker',
action='store_false',
help='Do not configure DockerHub credentials')

return parser

Expand Down Expand Up @@ -325,11 +327,11 @@ def take_action(self, parsed_args):
data.append(ag_context['client_name'])

# Extend headers and data with docker and git workflows
if not parsed_args.no_registry:
if parsed_args.do_docker:
(headers,
data) = registry.init.interactive(parsed_args, headers, data,
mandate_git_reg)
if not parsed_args.no_git:
if parsed_args.do_git:
(headers,
data) = gitserver.init.interactive(parsed_args, headers, data,
mandate_git_reg)
Expand Down

0 comments on commit 8ec7ded

Please sign in to comment.