Fix ansible-lint error on double quote
``` --> Scenario: 'default' --> Action: 'lint' --> Executing Yamllint on files found in ansible-minio/... Lint completed successfully. --> Executing Flake8 on files found in ansible-minio/molecule/default/tests/... ansible-minio/molecule/default/tests/test_minio_default.py:43:17: Q000 Remove bad quotes An error occurred during the test sequence action: 'lint'. Cleaning up. ```
This commit is contained in:
parent
61c242e187
commit
44116a7a3f
|
@ -10,7 +10,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||
|
||||
@pytest.fixture()
|
||||
def AnsibleDefaults():
|
||||
with open("../../defaults/main.yml", 'r') as stream:
|
||||
with open('../../defaults/main.yml', 'r') as stream:
|
||||
return yaml.load(stream)
|
||||
|
||||
|
||||
|
@ -42,4 +42,4 @@ def test_minio_server_data_directories(host, AnsibleDefaults, minio_datadir):
|
|||
|
||||
def test_minio_server_webserver(host):
|
||||
|
||||
host.socket("tcp://127.0.0.1:80").is_listening
|
||||
host.socket('tcp://127.0.0.1:80').is_listening
|
||||
|
|
|
@ -10,7 +10,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||
|
||||
@pytest.fixture()
|
||||
def AnsibleDefaults():
|
||||
with open("../../defaults/main.yml", 'r') as stream:
|
||||
with open('../../defaults/main.yml', 'r') as stream:
|
||||
return yaml.load(stream)
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||
|
||||
@pytest.fixture()
|
||||
def AnsibleDefaults():
|
||||
with open("../../defaults/main.yml", 'r') as stream:
|
||||
with open('../../defaults/main.yml', 'r') as stream:
|
||||
return yaml.load(stream)
|
||||
|
||||
|
||||
|
@ -40,4 +40,4 @@ def test_minio_server_data_directories(host, AnsibleDefaults):
|
|||
|
||||
def test_minio_server_webserver(host):
|
||||
|
||||
host.socket("tcp://127.0.0.1:9091").is_listening
|
||||
host.socket('tcp://127.0.0.1:9091').is_listening
|
||||
|
|
Loading…
Reference in New Issue