Skip to content

Commit 92a2b96

Browse files
authored
Update pmm-framework.py (#92)
Fix issue, to pick changed password
1 parent c4e15e7 commit 92a2b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pmm_qa/pmm-framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def mongo_ssl_setup(script_filename, args):
596596
subprocess.run(
597597
['cp', f'{scripts_path}docker-compose-pmm-psmdb.yml', f'{compose_file_path}'])
598598
admin_password = os.getenv('ADMIN_PASSWORD') or args.pmm_server_password or 'admin'
599-
subprocess.run(['sed', '-i', f's/password/{admin_password}/g', f'{compose_file_path}'])
599+
subprocess.run(['sed', '-i', f's/PMM_AGENT_SERVER_PASSWORD=admin/PMM_AGENT_SERVER_PASSWORD={admin_password}/g', f'{compose_file_path}'])
600600
subprocess.run(['sed', '-i', '/container_name/a\ networks:\\\n \\- pmm-qa', f'{compose_file_path}'])
601601
subprocess.run(['sed', '-i', '$a\\\nnetworks:\\\n pmm-qa:\\\n name: pmm-qa\\\n external: true',
602602
f'{compose_file_path}'])

0 commit comments

Comments
 (0)