When get_file is used in a template and the referenced file is not json/yaml, gophercloud throws the error: "Data in neither json nor yaml format."
It looks like this happens because get_file and type are treated exactly the same way, but get_file should not fail if the content is not json/yaml