Fix ansible-test cloud testing for collections.

This commit is contained in:
Matt Clay 2019-07-23 23:39:31 -07:00
parent 3c68a2e5f0
commit ba90263c22

View file

@ -23,6 +23,7 @@ from lib.util import (
load_plugins,
ABC,
to_bytes,
make_dirs,
)
from lib.target import (
@ -162,6 +163,8 @@ def cloud_init(args, targets):
clouds=results,
)
make_dirs(os.path.dirname(results_path))
with open(results_path, 'w') as results_fd:
results_fd.write(json.dumps(data, sort_keys=True, indent=4))