mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
Merge pull request #4517 from jakemcdermott/fix-akit-shell-init
fix akit shell init when no credential config is provided Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
92b9176455
@ -60,13 +60,17 @@ def main():
|
||||
if akit_args.credential_file != utils.not_provided:
|
||||
config.credentials = utils.load_credentials(
|
||||
akit_args.credential_file)
|
||||
else:
|
||||
config.credentials = utils.PseudoNamespace({
|
||||
'default': {
|
||||
'username': os.getenv('AWXKIT_USER', 'admin'),
|
||||
'password': os.getenv('AWXKIT_USER_PASSWORD', 'password')
|
||||
}
|
||||
})
|
||||
|
||||
if akit_args.project_file != utils.not_provided:
|
||||
config.project_urls = utils.load_projects(
|
||||
akit_args.project_file)
|
||||
else:
|
||||
config.credentials = utils.PseudoNamespace({'default': {'username': os.getenv(
|
||||
'AWXKIT_USER', 'admin'), 'password': os.getenv('AWXKIT_USER_PASSWORD', 'password')}})
|
||||
|
||||
global root
|
||||
root = api.Api()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user