mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 06:11:26 -07:00
Cleanup and enhancements for ansible-test. (#37142)
* Fix type hint typos. * Add one-time cloud env setup after delegation. * Add generate_password to util. * Add username/password support to HttpClient. * Avoid pip requirement for ansible-test shell. * Support provisioning Tower instances.
This commit is contained in:
parent
5de7c9ce8f
commit
b9b8081a87
8 changed files with 82 additions and 13 deletions
|
@ -171,8 +171,8 @@ class AzureCloudEnvironment(CloudEnvironment):
|
|||
|
||||
def get_config(config_path):
|
||||
"""
|
||||
:param config_path: str
|
||||
:return: dict[str, str]
|
||||
:type config_path: str
|
||||
:rtype: dict[str, str]
|
||||
"""
|
||||
with open(config_path, 'r') as config_fd:
|
||||
lines = [line for line in config_fd.read().splitlines() if ':' in line and line.strip() and not line.strip().startswith('#')]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue