|
|
|
|
@ -171,8 +171,7 @@ def handle_state_present(client, module):
|
|
|
|
|
with open(module.params["docker_compose_file_path"]) as f:
|
|
|
|
|
contents = f.read()
|
|
|
|
|
elif module.params.get("stack_definition"):
|
|
|
|
|
json_obj = json.loads(module.params["stack_definition"])
|
|
|
|
|
contents = json.dumps(json_obj, indent=4)
|
|
|
|
|
contents = json.dumps(module.params["stack_definition"], indent=4)
|
|
|
|
|
else:
|
|
|
|
|
raise ValueError("Should not be able to be here!")
|
|
|
|
|
|
|
|
|
|
|