stack creating successfully from file

pull/3/head
Cian Hatton 3 years ago
parent 38ee0e0c8f
commit 9c5ca13d84

@ -160,20 +160,18 @@ def run_module():
stacks = client.get("stacks")
result["token"] = client.token
# result["stacks"] = stacks
result["stacks"] = stacks
file_contents = ""
with open(module.params["docker_compose_file_path"]) as f:
file_contents = f.read()
result["stacks"] = stacks
result["stack_name"] = module.params["stack_name"]
body = {
"body_compose_string": {
"env": [],
"name": module.params["stack_name"],
"stackFileContent": file_contents,
},
}
query_params = {

Loading…
Cancel
Save