Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource template not rendering importfile #193

Closed
norrland opened this issue Nov 1, 2022 · 1 comment · Fixed by #300
Closed

Resource template not rendering importfile #193

norrland opened this issue Nov 1, 2022 · 1 comment · Fixed by #300

Comments

@norrland
Copy link

norrland commented Nov 1, 2022

When rendering a resource specific template, the ImportFile does not render.

I have the following templates:

$ tree templates/
templates/
├── index.md.tmpl
├── resources
│   └── server.md.tmpl
└── resources.md.tmpl

After adding the server.md.tmpl to have specific changes for the server resource it doesn't render importFile.
See diff below.

@@ -167,7 +191,4 @@ Required:
 - `username` (String)
 ## Import
 Import is supported using the following syntax:
-```shell
-# provider_server Import
-$ terraform import provider_server.example kvm123456
-```
+{{codefile "shell" "examples/resources/provider_server/import.sh"}}
$ find . -name "import.sh"
./examples/resources/provider_server/import.sh
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant